@Repository
@JaversSpringDataAuditable
public interface UserRepository extends JpaRepository<User, Integer> {
This works fine but I have a lot of repositories I need to annotate. Is there a way to configure Spring Boot so that all instances of @Repository will automatically use @JaversSpringDataAuditable?
I don't know about @JaversSpringDataAuditable, but you can solve your problem by taking advantage of how Spring Boot works and annotations.
Here is my example code:
You can also make the annotation name more beautiful (suitable for its functionality).
I hope it will be of help. thank you