正如@ M.Deinum所提到的,我忘了最后一个 ) 关于我的切入点的匹配器。
)
此外,我忘了指定aspectj-autoproxy,以便考虑我的方面类。 有了这个,如果我希望所有方面类都有他们创建的相应代理,则不需要声明aop.xml。
所以我通过添加spring-aop xsd来指定它 application-context.xml 像这样(“------->”来制作一个传说,虽然无效:)在这个xml中):
application-context.xml
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:neo4j="http://www.springframework.org/schema/data/neo4j" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop" ------->That is added xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd http://www.springframework.org/schema/data/neo4j http://www.springframework.org/schema/data/neo4j/spring-neo4j-2.1.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd" ---------> That is added > ..... <aop:aspectj-autoproxy/> .....
现在全部工作。