且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

生产环境中Java Web Service的方法执行时间的测量

更新时间:2022-04-07 00:19:38

您可以使用Spring Framework的"StopWatch"类:

You can use the Spring Framework 'StopWatch' class:

您甚至可以使用AOP,这样您就可以在不更改代码的情况下分析代码

You can even use AOP, this way you can profile code without changing it