原文:spring 2.5.6 錯誤:Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher

在運行一個第三方公司交付的項目的時候, 出現: 憑感覺,這是jdk版本問題。 我本機安裝的是 . , 對方要求的也是 . . 他們運行沒問題,我這里怎么就不行了呢 這就奇怪了。。 跟進源碼里面看看吧:org.springframework.context.config.ContextNamespaceHandler .parse ContextNamespaceHandler.java: 很明顯是 ...

2019-02-25 15:46 0 2958 推薦指數:

查看詳情

<context:component-scan>

<context:component-scan>:掃描指定包,如果發現有指定注解,那么該類將由Spring進行管理。 舉例子: 一個簡單的User類 一個簡單的Person類 ...

Mon Jun 11 18:54:00 CST 2018 0 3009
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM