I have used this tutorial Accessing JPA Data with REST to create a simple RESTful Webservice that access some data from a database. It works great. I love how simple it is and I understand more or less how it works.
I have been asked, however, to add some custom logging. Whenever the web service gets called a log, "Start - TIME", is generated and just before the service returns generate another log, "End - TIME". Is there a way to do that without disrupting my the methods containing the @Query anotation
public interface PersonRepository extends PagingAndSortingRepository<Person, Long>
I was kind of hopping that there would be some sort of annotation but I can't seem to find anything.
Any suggestions?