Context namespace element 'component-scan' its parser class are only available on JDK 1.5 and higher
在Spring的配置檔案applicationContext.xml中
<!-- 自動掃描與裝配bean -->
<context:component-scan base-package="cn.itcast.oa"></context:component-scan>
當執行tomcat時出現錯誤
Caused by: 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的版本太低了,tomcat的配置中更換一個低版本的jdk,解決問題。
相關文章
- <context:component-scan> 標籤Context
- <context:annotation-config/>、<context:component-scan/>Context
- Ansible: No inventory was passed, only implicit localhost is availablelocalhostAI
- Restricting a Method to Class-Only o Instance-OnlyREST
- JDK1.5新特性JDK
- utilseq.h:92:30: error: ‘Iefp’ is not a class or namespaceErrornamespace
- Spring 系列(四):我們來聊聊<context:component-scan/>SpringContext
- annotation之context:annotation-config與 context:component-scan的區別與聯絡Context
- 總結:JDK1.5-JDK1.8各個新特性JDK
- jdk1.5-1.10新特性JDK
- 轉:JDK1.5新語法JDK
- JAVA JDK1.5-1.9新特性JavaJDK
- JDK1.5新特性介紹JDK
- hibernate.current_session_context_classSessionContext
- lxml.etree 教程1: The Element classXML
- jdk1.4和jdk1.5的有那些區別JDK
- jdk1.5文件(手冊)JDK
- 圖文介紹jdk1.5下載(有jdk下載)JDK
- jdk1.5與Tomcat5.5配置JDKTomcat
- jdk1.5能連oracle9嗎?JDKOracle
- XML namespace problems with IBM JDK(xml在使用ibm jdk時解釋錯誤)XMLnamespaceIBMJDK
- JDK 1.5 - 1.8 各版本的新特性總結JDK
- JDK1.5 我已經不認識了JDK
- JDK1.5中新的語言特徵JDK特徵
- element-ui中row-class-name的用法UI
- You are using the runtime-only build of Vue where the template compiler is not available.UIVueCompileAI
- context:component-scan屬性介紹,SSM的bean被掃描兩次問題ContextSSMBean
- sending context initialized event to listener instance of class org.springframework.web.context.ContContextZedSpringFrameworkWeb
- Tomcat5.5+Jdk1.5下配置jdon出錯TomcatJDK
- JDK1.5中的String.format的用法JDKORM
- context:component-scan標籤的use-default-filters屬性的作用以及原理分析ContextFilter
- source 1.5 中不支援 lambda 表示式, Deployment failed repository elementAI
- HTML ParserHTML
- 系統功能一鍵開關工具Only Switch 1.5中文版
- JNI開發:Class android.content.Context could not be foundAndroidContext
- Python Timer Class - Context Manager for Timing Code BlocksPythonContextBloC
- jbuilder9.0+jdk1.5的問題,請高手指點UIJDK
- React報錯之React.Children.only expected to receive single React element childReact