Have you followed the steps to activate auditing but it's still not working? Spring Data JPA offers a very useful auditing component which allows you to record the who what and when for each entity object. However the documentation is perhaps slightly confusing, especially if you're using Spring Boot
Example 65. Auditing configuration orm.xml Example 66. Activating auditing using XML configuration Example 67. Activating auditing via Java configuration As of Spring Data JPA 1.5, auditing can be enabled by annotating a configuration class with the @EnableJpaAuditing annotation"
Read full article from Spring Data JPA - Auditing
No comments:
Post a Comment