【配置文件都写了,但是报错很莫名其妙 _aop 】 | IT修真院·坑乎
问题已收录 配置文件都写了,但是报错很莫名其妙
我也踩过这个坑( 1 )
已统计您的踩坑,无需重复点击
回答(1)
aop
详细描述
错误截图
编辑于2024-05-16
  • [北京|荣耀师兄]JAVA-白云中
    0

    第一张图中,文件头信息有问题,引入aop的时候,除了xmlns信息外,xsi信息,它的引入地址也要添加。

    文件头配置信息如下:

    <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:mvc="http://www.springframework.org/schema/mvc"
          xmlns:aop="http://www.springframework.org/schema/aop"
          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/mvc
           http://www.springframework.org/schema/mvc/spring-mvc.xsd
           http://www.springframework.org/schema/aop
           http://www.springframework.org/schema/aop/spring-aop.xsd">


    编辑于2019-09-21