tracking specific request and response parameters in java application

纵然是瞬间 提交于 2020-01-15 10:10:46

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!