일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- SpringBatch 스키마
- javascript 함수
- Javascript
- javascrpit 기초
- Spring Entity
- step 테이블
- Spring DTO
- react quill custom
- react jsx if
- Spring CORS
- react react-router-dom v6
- Spring JPA
- Spring Controller return
- spring
- react link
- editor Quill
- springbatch
- react forwardRef
- 텍스트가 많은 경우
- JPA Insert
- spring security
- springbatch chunk
- Docker Windows 설치
- JPA Update\
- 코드 중복제거
- react Quill
- react Page
- javascript 기초
- spring builder
- react
- Today
- Total
목록Java/SpringBoot (12)
천천히 알아보는 코딩공부
✅ Spring이 기본으로 제공하는 Resolver 예시RequestParamMethodArgumentResolver@RequestParamPathVariableMethodArgumentResolver@PathVariableRequestBodyMethodArgumentResolver@RequestBodyModelAttributeMethodProcessor@ModelAttribute, 폼 데이터ServletRequestMethodArgumentResolverHttpServletRequest, HttpSession 등- 컨트롤러에서 쿼리 스트링을 변수에 바인딩하려면 @RequestParam 을, 가변적인 경로를 변수에 바인딩하려면 @PathVariable 을, HTTP Body를 변수에 바인딩하려면 @Req..
🔹 🚀 개념 정리 AuthenticationProviderOncePerRequestFilter언제 사용?주로 세션(Session) 기반 인증JWT 토큰 기반 인증역할로그인 요청 시 ID/PW 검증 및 세션 생성모든 요청에서 JWT 검증 및 인증 정보 저장어디에서 실행?AuthenticationManager가 호출할 때 실행 (/auth/login)HTTP 요청이 들어올 때마다 실행 (필터 체인에서 실행)Security 설정http.authenticationProvider(customAuthenticationProvider)http.addFilterBefore(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class)Spring Secu..
Spring Security Spring 기반의 애플리케이션의 보안(인증과 권한, 인가 등)을 담당하는 스프링 하위 프레임워크다. Spring Security는 인증과 권한에 대한 부분을 Filter 흐름에 따라 처리하고 있다. Filter는 Dispatcher Servlet으로 가기 전에 적용되므로 가장 먼저 URL 요청을 받지만, Interceptor는 Dispatcher와 Controller 사이에 위치한다는 점에서 적용 시기의 차이가 있다. Spring Security는 보안과 관련해서 체계적으로 많은 옵션을 제공해준다. [ 인증(Authentication)과 인가(Authorization) ] - 인증(Authentication): 해당 사용자가 본인이 맞는지를 확인하는 절차 - 인가(Autho..
Spring JPA Update 특정컬럼 변경 예제 Post 방식으로 구현하였다. AdminNoticeDto (DTO) @Getter @NoArgsConstructor public class AdminNoticeDto { private long id; @NotNull (message = "관리자 명을 입력해주세요") private String serviceName; @NotNull (message = "서비스 그룹을 입력해주세요") private String serviceGroup; @NotNull (message = "제목을 입력해주세요") private String title; @NotNull (message = "내용을 입력해주세요") private String content; private cha..
Spring JPA insert, Update 구현하는 예제 Post 방식으로 구현하였다. AdminNoticeDto (DTO) @Getter @NoArgsConstructor public class AdminNoticeDto { private long id; @NotNull (message = "관리자 명을 입력해주세요") private String serviceName; @NotNull (message = "서비스 그룹을 입력해주세요") private String serviceGroup; @NotNull (message = "제목을 입력해주세요") private String title; @NotNull (message = "내용을 입력해주세요") private String content; privat..
@Getter/@Setter 필드에 @Getter나 @Setter를 붙인다면, lombok이 해당 필드에 대한 기본 getter/setter를 생성해줍니다. @Getter @Setter public class BoardDTO { // TB_BOARD private Long idx;// 번호(PK) private String title;// 제목 private String content;// 내용 private String writer;// 작성자 private int viewCnt;// 조회수 private String noticeYn;// 공지 여부 private String secretYn;// 비밀 여부 private String deleteYn;// 삭제 여부 private LocalDateTim..