build.gradle 에 다음 의존성 추가implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0' SecurityConfig 에 다음 사항 permitAll() 적용new AntPathRequestMatcher("/swagger-ui/**"),new AntPathRequestMatcher("/v3/api-docs/**"),new AntPathRequestMatcher("/swagger-resources/**"),new AntPathRequestMatcher("/swagger-ui.html"),new AntPathRequestMatcher("/webjars/**") JwtFilter 에 다음 사항을 화이트리스트에 적용new Ht..
SpringBoot/어노테이션 사용법

@CreatedDate Entity가 생성될 때 자동으로 현재 날짜와 시간을 저장하는 어노테이션이다.이 어노테이션이 적용된 필드는 Entity가 생성될 때마다 데이터베이스에 현재 날짜와 시간이 자동으로 저장된다. @LastModifiedDateEntity가 수정될 때 자동으로 현재 날짜와 시간을 저장하는 어노테이션이다.이 어노테이션이 적용된 필드는 Entity가 수정될 때마다 데이터베이스에 현재 날짜와 시간이 자동으로 저장된다. ▶사용방법메인 클래스에 @EnableJpaAuditing 붙이기 엔티티 상단에 @EntityListeners(AuditingEntityListener.class) 엔티티 하단에 @CreatedDate 와 @LastModifiedDate 붙이기