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
堆内存溢出,堆空间不足