首页 > 其他 > 详细

idea关于“无法找到元素 'context:component-scan' 的声明”的问题

时间:2018-09-23 14:18:37      阅读:245      评论:0      收藏:0      [点我收藏+]

idea给的默认spring xml配置文件头存在一些问题(不全),使用完整的文件头后问题解决:

<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:p="http://www.springframework.org/schema/p"
    xmlns:context="http://www.springframework.org/schema/context"
    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">

</beans>

 

idea关于“无法找到元素 'context:component-scan' 的声明”的问题

原文:https://www.cnblogs.com/tianxiafeiyu/p/9692581.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!