fengyun2019

如果需要在IDEA自动创建spring.xml配置文件,那么我们就需要先引入Spring相关的依赖

1 <dependency>
2      <groupId>org.springframework</groupId>
3      <artifactId>spring-context</artifactId>
4      <version>5.1.1.RELEASE</version>
5 </dependency>

 

引入之后我们就可以看到效果

 

自动生成的spring 配置文件:

1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
5 
6 </beans>

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-06-21
  • 2021-10-14
  • 2021-06-08
  • 2022-01-06
  • 2021-12-14
  • 2021-05-04
  • 2022-02-10
猜你喜欢
  • 2021-09-21
  • 2021-04-05
  • 2021-04-10
  • 2021-04-02
  • 2022-12-23
  • 2021-11-30
  • 2021-12-26
相关资源
相似解决方案