課程
/后端開發
/Java
/Spring入門篇
請大家幫忙看看:
網上說我這是因為xml命名空間沒有寫全,但是我是寫全了的,為什么還是會出現這個問題?
謝謝大家啦!!
2018-10-11
源自:Spring入門篇 4-1
正在回答
<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"
? ? xmlns:aop="http://www.springframework.org/schema/aop"
? ? 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
? ? ? ? http://www.springframework.org/schema/aop?
? ? ? ? http://www.springframework.org/schema/aop/spring-aop.xsd">
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.1.xsd
要有這兩條語句吧
Serena_Cecilia 提問者
舉報
為您帶來IOC和AOP的基本概念及用法,為后續高級課程學習打下基礎
2 回答我這里嘗試的是注解,但是注入有點問題
4 回答注解報錯找不到
1 回答教程中的測試類TestInjection使用問題 ,是否能通過Autowired注入來實現測試功能
3 回答單元測試錯誤 ,怎么解決
2 回答多使用一個注解報錯,當我注釋掉私有變量上的autowired的注解,只是用service注解時,就不報錯了,求解釋
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2018-10-11
<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"
? ? xmlns:aop="http://www.springframework.org/schema/aop"
? ? 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
? ? ? ? http://www.springframework.org/schema/aop?
? ? ? ? http://www.springframework.org/schema/aop/spring-aop.xsd">
2018-10-11
要有這兩條語句吧