前提:导入约束,添加注解支持
- "1.0" encoding="UTF-8"?>
"http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:context="http://www.springframework.org/schema/context"
- xsi:schemaLocation=" http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context.xsd">
-
-
-
-
-
如果spring项目是用maven创建的
相关依赖
org.springframework spring-webmvc 5.3.30 junit junit 3.8.1 test
spring4之后要保证aop的依赖导入