Context namespace element 'component-scan' its parser class are only available on JDK 1.5 and higher
執行tomcat的時候,出現下面的錯誤
java.lang.IllegalStateException: Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher
原因:主要是因為spring的版本低所導致的問題,但是你可能會有疑問,明明,我的專案中用到的spring的版本明明已經是新版本,怎麼可能存在低版本的問題呢?
此時,你需要檢查你的pom.xml檔案中是否有使用的到dubbo,因為dubbo一來了一箇舊版本的spring,所以導致此問題發生;解決方案如下:
相關推薦
Context namespace element 39;component-scan39; its parser class are only available on JDK 1.5 and higher
執行tomcat的時候,出現下面的錯誤 java.lang.IllegalStateException: Context namespace element 'component-scan' and its parser class [org.springframework.context
spring2.5.6的‘annotation-config’ and its parser class are only available on JDK 1.5 and higher錯誤解決
最近在學習馬士兵的spring教程,視訊教程中的專案中用的是spring低版本(2.5.6),今天用jre 8測試了一下,發現錯誤: Unexpected exception parsing XML document from class path resource
【原創】問題定位分享(15)Context namespace element 39;component-scan39; and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinit
今天嘗試執行一個古老的工程,配置好之後編譯通過,結果執行時報錯: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class p
java.lang.IllegalStateException: Context namespace element ‘annotation-config’ and its parser class
專案中用的是spring低版本(2.5.6),今天用jre 8測試了一下,發現錯誤: Unexpected exception parsing XML document from class path resource [applicationContext-dao.xml]; nested e
Dubbo之 The prefix "context" for element "context:component-scan" is not bound
問題描述 Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 13 in XML document from clas
spring pom文件報錯:提示no declaration can be found for element 39;dubbo:service39;.
net 技術 found cnblogs 點擊 找到 inf 提示 src 轉自:http://blog.csdn.net/happylife_haha/article/details/52755425 pom文件報錯:The matching wildcard is st
Yii2 使用json 和設置component 中39;format39; => yiiwebResponse::FORMAT_JSON 的區別
utf-8 全部 cti lencod yii json格式 當前 form resp 在Yii2中如果設置了 ‘response‘ => [ ‘format‘ => yii\web\Response::FORMAT_JSON, ‘charset‘
dubbo spring pom文件報錯:提示no declaration can be found for element 39;dubbo:service39;.
valid windows validate tex file lib window win fcm pom文件報錯:The matching wildcard is strict, but no declaration can be found for element
Unable to instantiate Action, xxxAction, defined for 'xxx' in namespace '/'xxxAction解決方式
scope 類名 jsp amp esp def res 出現 eth 出現這個問題的解決辦法主要有兩個 1、假設項目沒有使用Spring,則struts.xml配置文件裏,這個action的class屬性的路徑沒有寫完整,應該是包名.類名 2、假設項目使用了S
啟動weblogic報錯:string value 39;2.439; is not a valid enumeration value for web-app-versionType in namespace http://java.sun.com/xml/ns/javaee
-a xsd not app b- 1.0 ring encoding ont 啟動報錯: 原因:有人改動了web.xml的頭 解決方法: 在web.xml中修改擡頭為: <?xml version="1.0" encoding="UTF-8"?> <we
iis配置問題報錯 -- Could not load file or assembly 39;Oracle.DataAccess39; or one of its dependencies
could not ans 程序 sys logs info req exc 方案 具體提示: Could not load file or assembly ‘Oracle.DataAccess‘ or one of its dependencies. 試圖加載格
web.xml 中async-supported爆紅叉叉 cvc-complex-type.2.4.a: Invalid content was found starting with element 39;async-supported39;.
class 表頭 start lex .org nco app lns pri 新建一個項目在web.xml中些東西是發現async-supported報紅叉 cvc-complex-type.2.4.a: Invalid content was found starti
Cannot read property 39;component39; of undefined 即vue-router 0.x轉化為2.x
path 解決 red out json enc pos 配置 routes 原文鏈接:http://blog.csdn.net/m0_37754657/article/details/71269988 由於vue版本為1.0,沒有一些vue-router指令;因而需要vu
Spring中使用註解時啟用<context:component-scan/>
方式 log one tar ati out 文件 ext tail 在spring中使用註解方式時需要在spring配置文件中配置組件掃描器:http://blog.csdn.net/j080624/article/details/56277315 <context
解決Spring中使用context:component-scan命名空間配置錯誤
num lex odi exceptio type oca ted pac instance ** nested exception is org.xml.sax.SAXParseException; lineNumber: 16; columnNumber: 74; cv
關於國際化時報org.springframework.context.NoSuchMessageException錯,具體到No message found under code 39;你的鍵名39; for locale 39;zh_CN39;.的解決方案
exceptio contex 中文 -- icp tex ber enc src 使用IntelliJ IDEA開發工具解決方案: 總結原因,解決方案: 1,在使用messageSource.getMessage方法時,參數1的鍵名跟屬性文件中鍵名不一致,比如Contro
Spring <context:annotation-config> 與<context-component-scan> 的作用
sca beans 註解 component posit 復制代碼 npos tro autowired <context:annotation-config> 是用於激活那些已經在spring容器裏註冊過的bean(無論是通過xml的方式還是通過packag
今日收獲-context:component-scan
desire alc detect con repos pre app component vid 一、要有命名空間 xmlns:context="http://www.springframework.org/schema/context" 二、作用:直接上解釋吧! Sca
Spring 註解<context:annotation-config> 和 <context:component-scan>的作用與區別
poi dao lis 運行 ima scrip support .... res <context:annotation-config> 是用於激活那些已經在spring容器裏註冊過的bean(無論是通過xml的方式還是通過packagesanning的方式)
spring配置中《context:annotation-config》 和 《context:component-scan》區別
看到網上有很多大神的文章講解,講得很好很深,可是我沒有用到過,理解不了,在這寫一點我自己理解的區別。 如果想使用@AutoWired註解,需要在Spring配置檔案中配置<context:annotation-config> 。 <con