Idea选择new 的是谷歌i有没有XML Configuration File
程序员文章站
2022-03-04 13:34:03
...
- 正确导入spring相关依赖jar包
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<!-- 版本自己选-->
<version>5.2.6.RELEASE</version>
</dependency>
</dependencies>
- 点击File -> settings -> Editor -> File and Code Templates -> other -> spring -> spring-beans.schema.xml -> Apply -> OK