Spring基礎01——在IDEA中編寫spring.xml


如果需要在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>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM