Can we enable or disable Aspect based on value of any flag or through configuration file?

后端 未结 3 1615
梦如初夏
梦如初夏 2020-12-18 01:22

I have added following dependency in pom.xml


            org.springframework
                     


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-18 01:49

    It appears Spring does not support AspectJ's if() pointcut primitive.

    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'foo': Initialization of bean failed; nested exception is org.aspectj.weaver.tools.UnsupportedPointcutPrimitiveException: Pointcut expression 'execution(* doSomething(..)) && if()' contains unsupported pointcut primitive 'if'

提交回复
热议问题