일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- Spring Spring boot 차이
- REST란
- 인텔리제이
- 스프링 부트 기능
- 1차캐시
- json gson 차이
- queryDSL
- jpa회원가입
- JPA
- 복합키
- ERD 작성
- git
- json
- spring서버
- Q 클래스
- JPA주의사항
- @IdClass
- Error creating bean with name
- 스프링부트오류
- REST API 규칙
- 스프링 부트 공식 문서
- jpa에러
- 최종 프로젝트
- uncheck Exception
- JoinColumn
- Unsatisfied dependency
- 빈생성안됨
- Filter
- github
- jwt메서드
- Today
- Total
목록내배캠 주요 학습/TIL : Today I Learned (41)
Everyday Dev System
1. 개발 환경 설정: 컴퓨터에 Node.js 및 npm(노드 패키지 관리자) 설치하기. LTS로 설치하였습니다. 공식 Node.js 웹사이트에서 다운로드할 수 있습니다: https://nodejs.org Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org 2. 새 반응 프로젝트 만들기: 터미널 또는 명령 프롬프트를 열고 다음 명령을 사용하여 Create React App을 사용하여 새 React 프로젝트를 만듭니다. "my-react-app"을 원하는 프로젝트 이름으로 변경하시기 바랍니다. npx create-react-app my-react-app 1) Mac에서는 터미널 창에 입력하여 실..
1. Spring Framework와 JPA를 사용한 DB 작업 EntityManager는 JPA 인터페이스의 일부, Entity를 DB와 맵핑해주는 ORM 기술을 정의한 인터페이스이다. @Repository public class ChannelRepository { @PersistenceContext EntityManager entityManager; // persistenceContext 를 주입받아서 EntityManager 를 사용한다. public Channel insertChannel(Channel channel){ entityManager.persist(channel); return channel; } public Channel selectChannel(Long id) { return ent..
24일 월요일은 '너의 의견은' 프로젝트 마무리와 발표를 진행하였다. 2023.07.24 - [내배캠 주요 학습/매일 공부] - 너의 의견은 : 투표 게시판, KPT 회고 너의 의견은 : 투표 게시판, KPT 회고 프로젝트 시연 영상 기획 및 진행 사항 및 결과 참조: https://www.notion.so/2-c446b07351924a9d8fc2cb6522c76421?pvs=40 2조 (이름좀 바꿔조) S.A 내용 www.notion.so PPT 자료: 1. 한 주의 흐름 1) 한 일 시연 영상 : https://w cdev.tistory.com 25일 화요일 오전에는 '너의 의견은' 프로젝트의 github 리드미 파일을 작성하였다. 오후에는 AWS 강의를 들으며 IAM, 리전, EC2, SSH 접근 ..
wsl에서 아무리 해도 chmod 400 (파일명) 명령어가 정상 수행이 되지 않았다. chmod 777 (파일명) 은 되지만, 400은 윈도우 환경에서 되지 않는다. 방법을 규준님과 찾아보다가.. power Shell에서 시도해 보았다. 된다.. wsl에서는 같은 명령어로는 모든 권한이 취소되는 이상한 현상을 발견했다. power shell에서는 잘되지 여기서 AWS SSH를 활용하면 될 것이다. wsl이 이상하다는 결론이 나왔다. wsl이 안켜지는 분들도 있기 때문에 역시 power shell이 최고다. reference: https://ombujeong.tistory.com/36 Windows 에서 PowerShell로 chmod 400 설정하기 icacls.exe .pem /reset icacls..
참조 : https://github.com/thesun4sky/spring-blog/blob/lv4/ GitHub - thesun4sky/spring-blog Contribute to thesun4sky/spring-blog development by creating an account on GitHub. github.com (LV4 브랜치에서 확인할 수 있다.) 아래는 Dto 클래스 코드이다. package com.sparta.myblog.dto; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Pattern; import lombok.Getter; import lombok.Setter; @Gett..
> 1. Entity 클래스 내에 @Setter는 기재하지 않는 것이 좋다. - DB 정보의 예기치 않은 정보 수정이 이루어지지 않도록 방지하기 위함이다. https://github.com/Chaeyounglim/myBlog/issues/6 Entity 클래스에 @Setter 미권장 · Issue #6 · Chaeyounglim/myBlog Entity 클래스 내에 @Setter는 기재하지 않는 것이 좋다. DB 정보의 예기치 않은 정보 수정이 이루어지지 않도록 방지하기 위함이다. 모든 Entity 클래스 내에 @Setter 어노테이션 삭제하기 github.com 2. Service 클래스에 필요한 메서드를 Interface 클래스 내에 생성 - PostService 인터페이스를 만들어 메서드에 대한 설..
1. 아래 코드를 간략화 할 수 있는가? List postList = postRepository.findAll(); List postResponseDtoList; postResponseDtoList = postList.stream() .map(post -> { PostResponseDto responseDto = new PostResponseDto(post); return responseDto; }) .collect(Collectors.toList()); 간략화한 결과 : List postList = postRepository.findAll(); List postResponseDtoList = postList.stream() .map(PostResponseDto::new) .toList()); 위 코드에..
1. OAuth 2.0 - OAuth 2.0 클라이언트 역할 수행 - https는 OAuth 환경에서만 작동한다. * Spring Security + jwt + OAuth 2.0 Social Login을 다같이 사용 가능하다. https://millo-l.github.io/OAuth2-%EA%B8%B0%EB%B0%98-%EC%9D%B8%EC%A6%9D%EB%B0%A9%EC%8B%9D/ OAuth 2.0 기반 인증 방식 | millo's tech blog 1. 서론 지난 포스팅까지 Session과 JWT 기반 인증 방식에 대해 알아봤다. Session과 JWT 기반 인증 방식은 모두 자신의 사이트에서 인증을 진행하기 위한 방식이다. 이 방식들로는 내가 만든 사이트의 millo-l.github.io http..
Spring Security 는 필터 모임이라고 보면 됩니다. SecurityFliterChain을 Proxy 레이어로 감싸고 있습니다. DelegatingFilterProxy가 FilterChainProxy를 감싸고 있고, FilterChainProxy가 시큐리티 필터들을 모두 묶음으로 관리합니다. UsernamePasswordAuthenticationFilter는 AbstractAuthenticationProcessingFilter를 상속한 필터입니다. 여러개의 인증 방법이 있을 수 있음. 그러므로 AuthenticationProvider를 list로 갖고 있고 어덴케이션 매니저가 해당 요청에 맞는 provider를 맵핑해줌. UserDetails 인증된 정보를 가져오기 위함 User Entity 엔..
질문 : github을 통해 형상관리를 하면 원본 Repo에 각자 branch를 나눠서 하는게 더 좋을까요? 아니면 각자 fork를 해서 Pull Request를 하고 원본 repo에 merge를 하는 방법이 더 좋을까요? 튜터님 답변 : 전자의 방법대로 하여 브랜치를 나누고 브랜치에서 pull request를 메인/dev 브랜치로 만들어 서로 리뷰 받는 쪽이 좋지 않을까 생각합니다. 후자는 회사에서 코드 베이스를 엄격하게 관리하는 경우에 활용하는 수준입니다. 그렇지만! 내배캠은 취직하기 위함이 목적이니 미리 연습해보기 위해 해당(후자의) 방법을 권유하는거 같습니다. 커밋 메시지를 잘 작성하여야 한다. Issue도 제목이라도 적어서 같이 [#11] 과 같이 적기! 질문 : 예를 들어 사용자가 로그인을 시..