spring异常

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中。

 

转载于:https://www.cnblogs.com/DennyZhao/p/7871634.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值