今天学习Spring AOP的时候,在spring配置文件中使用aop:config标签时没有自动提示,自己敲上去后爆红,找了半天是在配置文件里
在spring配置文件的 头部beans中添加
xmlns:aop=“http://www.springframework.org/schema/aop”
和
xsi:schemaLocation=“http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd”:
代码如下:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/cont