我正在使用aspectj的自定义注释.
@TestLoggingAnnotation(setMessage = "I want to set value here")
public void get() {
String retString = null;
String message = "DEFAULT";
if (message == "DEFAULT") {
retString = "Default Logging";
} else {
retString = "Custom Logging";
}
}
Run Code Online (Sandbox Code Playgroud)
以上只是简单的示例代码.我的要求是我想在方法产生之后传递参数值.
在我的情况下,我想在自定义参数中设置retString值setMessage.