首页 > 编程语言 > 详细

spring异常

时间:2018-10-11 20:43:19      阅读:198      评论:0      收藏:0      [点我收藏+]

1.The type org.springframework.core.NestedRuntimeException cannot be resolved. It is indirectly referenced from required .class files

spring的core包异常,在页面上也没有明确的错误地址,此种情况原因为mvn库的springframework使用springboot构造工程导入过依赖jar包,和普通的jar包依赖不一样导致报错。方法就是删除mvn库中的springboot的依赖jar包,重新update 工程(mvn package -U)。

※注意springBoot不能和springmvc的一般配置建立的工程共用一个mvn库。 

2.严重: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener

ContextLoaderListener 没有找到异常

ContextLoaderListener类 实现ServletContextListener接口,在启动Web容器时,自动装配ApplicationContext.xml的配置信息。默认配置信息在

WEB-INF/ApplicationContext.xml中。当然也可以自定义位置。

3. cvc-complex-type.2.4.a:Invalid content was found starting with element ‘bean‘

 是因为conponent-scan 不能放在bean中。

 

spring异常

原文:https://www.cnblogs.com/DennyZhao/p/7871634.html

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