常见bugger集合

bugger集

NosucheBean DefinitionException
检查类是否由交给spring管理,包结构是否正确,有没有给对象赋值,类上是否有spring框指定特定的@注解

Could not autowire.No Beans of ‘DefaultCache’ type found
spring容器中找不到DefaultCache类型;检查类所在的包结构?(必须在启动类所在包和子包);检查这个类是否启动了Spring boot注解描述(如:@Component)

DefaultCacheTests.testDefaultCache(空指针异常NPE)
检查是否出现了对象调用方法
检查调用方法是否赋了值(自己赋值或由spring框架赋值)
假如是spring框架赋值,要检测是否有Autowired注解描述,属性所在的类是否交给了spring管理

org.springframework.beans.factory.UnsaatisfiedDepencyException:
依赖注入异常

expected single matching bean but found 2:softCache,WeakCache
Bean池中有两个属性参数SoftCache,WeakCache

idea中@autowired注解错误配置
设置:Editor—>inspections—>spring—>code—>Autowiring for bean class

BindingException:Invalid bound statement(not found)
mybatis数据绑定异常:
(1) springboot配置文件中检查映射文件的路径配置是否与实际储存位置一致
(2) 检查接口的类全名是否与映射文件的namespace值相同(不要空格)
(3) 检查接口的方法名是否在映射文件中有对应的id
(4) 检查application.properties.xml核心配置文件配置指向的路径是否正确

BindingException:@ContextConfiguration or @SpringBootTest(class=…)with your test
此问题,说明此测试类所在的包不在启动类所在包或子类。

@org.springframework.beans.factory.annotation.Autowired(required=true)
检查:(1)GoodsDao是否交给了spring管理(结构是否正确,是否有特定注解描述)
(2)GoodsDao映射是否正确(有可能SQL映射文件错误导致dao对象创建失败)

org.thymeleaf.exceptions.templateInputException:Error resolving template[goods],template might not exist or might not be accessible by any of the configured Template Resolvers
这个异常标识服务端Controller方法返回值view进行查找和解析出现问题
这个问题可能是:(1)配置文件中的模板前缀和后缀配置的是否正确
(2)模板(goods)没有配置路径正确存放

org,springframework.expression.spel.spelEvaluationException:EL1008E:Property
or field ‘rmark’
检查页面上${rmark}表到时对应的pojo对象中是否有get方法

NosucheBean DefinitionException
检查类是否由交给spring管理,包结构是否正确,有没有给对象赋值,类上是否有spring框指定特定的@注解

Could not autowire.No Beans of ‘DefaultCache’ type found
spring容器中找不到DefaultCache类型;检查类所在的包结构?(必须在启动类所在包和子包);检查这个类是否启动了Spring boot注解描述(如:@Component)

DefaultCacheTests.testDefaultCache(空指针异常NPE)
检查是否出现了对象调用方法
检查调用方法是否赋了值(自己赋值或由spring框架赋值)
假如是spring框架赋值,要检测是否有Autowired注解描述,属性所在的类是否交给了spring管理

org.springframework.beans.factory.UnsaatisfiedDepencyException:
依赖注入异常

expected single matching bean but found 2:softCache,WeakCache
Bean池中有两个属性参数SoftCache,WeakCache

idea中@autowired注解错误配置
设置:Editor—>inspections—>spring—>code—>Autowiring for bean class

BindingException:Invalid bound statement(not found)
mybatis数据绑定异常:
(1) springboot配置文件中检查映射文件的路径配置是否与实际储存位置一致
(2) 检查接口的类全名是否与映射文件的namespace值相同(不要空格)
(3) 检查接口的方法名是否在映射文件中有对应的id
(4) 检查application.properties.xml核心配置文件配置指向的路径是否正确

BindingException:@ContextConfiguration or @SpringBootTest(class=…)with your test
此问题,说明此测试类所在的包不在启动类所在包或子类。

@org.springframework.beans.factory.annotation.Autowired(required=true)
检查:(1)GoodsDao是否交给了spring管理(结构是否正确,是否有特定注解描述)
(2)GoodsDao映射是否正确(有可能SQL映射文件错误导致dao对象创建失败)

org.thymeleaf.exceptions.templateInputException:Error resolving template[goods],template might not exist or might not be accessible by any of the configured Template Resolvers
这个异常标识服务端Controller方法返回值view进行查找和解析出现问题
这个问题可能是:(1)配置文件中的模板前缀和后缀配置的是否正确
(2)模板(goods)没有配置路径正确存放

org,springframework.expression.spel.spelEvaluationException:EL1008E:Property
or field ‘rmark’
检查页面上${rmark}表到时对应的pojo对象中是否有get方法

Java.lang.outofMemoryError:java heap space
堆内存溢出,堆空间不足

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值