Spring 配置文件XML頭部文件模板實例詳解
更新時間:2017年04月24日 08:40:10 投稿:lqh
這篇文章主要介紹了Spring 配置文件XML頭部文件模板實例詳解的相關資料,需要的朋友可以參考下
普通spring配置文件模板:
<?xml version="1.0" encoding="UTF-8" ?> <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> </beans>
添加注解后的格式:
<?xml version="1.0" encoding="UTF-8" ?> <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" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> </beans>
感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!
相關文章
jsp中獲取狀態(tài)怎么寫(兩種實現(xiàn)方式)
由于框架是2005年的,jsp中不能存放標簽,只能有java代碼來寫了,接下來為大家介紹下兩種實現(xiàn)獲取狀態(tài)寫法,感興趣的各位可以參考下哈,希望可以幫助到你2013-04-04AJAX自學練習 無刷新從數(shù)據(jù)庫后臺取數(shù)據(jù)顯示
AJAX自學練習 無刷新從數(shù)據(jù)庫后臺獲取數(shù)據(jù)并顯示的代碼,大家可以參考下。2009-09-09