亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

注解測試報錯的問題

請大家幫忙看看:

https://img1.sycdn.imooc.com//5bbec49800011b8f05320047.jpg

網上說我這是因為xml命名空間沒有寫全,但是我是寫全了的,為什么還是會出現這個問題?


謝謝大家啦!!


正在回答

2 回答

<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">


0 回復 有任何疑惑可以回復我~
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.1.xsd

要有這兩條語句吧


0 回復 有任何疑惑可以回復我~
#1

Serena_Cecilia 提問者

beans里面關于context的命名空間和schema都寫完整了,但是還是報錯,后面就把包括aop,core之類的全部寫完,就行了,但是不信邪又把那些不用的刪了,只留了bean和context的命名空間和schema,又成功了。。。??謝謝你們!
2018-10-11 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

注解測試報錯的問題

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號