问题
I'm trying to get track of specific parameters of my request and response object and then retrieve it for another report. for example if i have a person object as request object i want to get track of only it's name and family and not the age.I'm aware of Spring Actuator, but i want a framework or best practice to implement or use it in my project. is there any best practice or framework in java for this purpose? i tried to search this but all i get is best practices for monitoring important metrics of application.
回答1:
You can use filters to track request and response. Example is available at Spring Boot Filter example
来源:https://stackoverflow.com/questions/59151155/tracking-specific-request-and-response-parameters-in-java-application