Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
随着我的 java 应用程序复杂性的增加,我想编写审计方法以确保我做的是正确的事情。
我怎么能在java中做到这一点?谢谢
他可能是指单元测试
检查这个开始:http: //junit.sourceforge.net/
或者也许使用 AspectJ 来审计某些方法调用?
您可以创建类似于过滤器的切入点,并在调用某些方法时捕获并获取有关参数的信息。这可能有利于审计。
方面J