728x90
Auditing에 관한 내용이라서
- Application class에 @EnableJpaAuditing 추가
@EnableJpaAuditing
@SpringBootApplication
public class App {
public static void main(String[] args) {
SpringApplication.run(App.class, args);
}
}
- Entity클래스에 @EntityListeners추가
@EntityListeners(AuditingEntityListener.class)
public class Team {
조회 결과 잘 나온다.

300x250
'ETC' 카테고리의 다른 글
| [Error] Junit5 - Suspicious combination of '@Test' and '@ParameterizedTest' (0) | 2023.06.07 |
|---|---|
| [Error] Spring - spring.jpa.open-in-view is enabled by default (0) | 2023.05.25 |
| [Error] Test - @Slf4j cannot find symbol 에러 (0) | 2023.05.23 |
| [Error] Spring config - Error executing DDL "alter table goal drop foreign key (0) | 2023.05.23 |
| [Error] Mysql Workbench 접속 에러 (0) | 2023.05.23 |
| [Error] Spring boot - HikariPool-1 - Shutdown completed. Process finished with exit code 0 (0) | 2023.05.23 |
| [IntelliJ] 인텔리제이 JUnit5 테스트 시, displayName이 안 나올 때 (0) | 2023.05.19 |
| [Error] Gradle, Spring Boot 3.x.x 실행 에러 (0) | 2023.05.19 |
