@AOP()
@Log(writeclass = "org.osystem.web.WriteLog")
@OnBefore(aopclass = { "org.osystem.safe.SafeAOP" })
public class DoArray extends SPageMaster {
@AOP(false)
public String getMessage() {
return null;
}
@AOP(false)这段代码什么意思啊??

解决方案 »

  1.   

    能具体说一下用处吗?
    我看的这个项目里面基本上每个类里都有这个注释
    而且有的地方还用到了这个AOP接口  这个接口是这样定义的
    public @interface AOP{
    boolean value() default true;
    }在interface前加@有代表什么意思 
    请帮忙解释一下
      

  2.   

    Java 5引入的元标签 Meta annotation 也算是注释吧。这些信息应该是可获取的。举个例子Hibernate annotation 就可以在Value Object(DB table entity)每个field对应到数据库的列
    ,里面添加这些annotation这样就不用xml去做配置。
      

  3.   

    struts2.0  spring2.1以上  都引入 注释驱动  
    网上好多   可以去看看  不难理解