본문 바로가기
Spring

[TIL] 231130Spring Timestamped @Service @Transactional

by studymode 2023. 11. 30.

Timestamped

Timestamped class추가할때 어플리케이션에 @EnableJpaAuditing 추가하기!

 

 

 

@Transactional

Service단에 update 메서드에 더티채킹(dirty checking) 위해 @Transactional 에너테이션 넣기!