1.自动加载出错
require a bean of ....
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
排查步骤:
1.检查springboot 项目的配置文件;
2.@SpringBootApplication 和@Configuration 注解重合,且@Configuration优先级更高,但配置不正确
2.The POM for postgresql:postgresql:jar:42.2.5 is missing, no dependency information available
原因:项目中mvn 使用的postgresql的目录不在org.postgresql下面
3.Error:(1, 38) java: 需要<标识符>
Error:(3, 44) java: 需要class, interface或enum
原因:文件名与关键字重复
4.No operator matches the given name and argument type(s). You might need to add explicit type casts
原因:sql语句符号的问题,单反引号
5.org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name
原因
6.nullpointError 空指针异常
原因:在service 中定义了 了类型为mapper的属性
7. ERROR: column "end_use_time" is of type timestamp without time zone
原因:mapper中数据类型错误
8.can`t create a bean ....
原因: mapper 类和mapper.xml文件定义数据类型不一样,其他可能,**mapper.xml文件中id重复、返回数据类型错误、.xml文件没有加载成功;
9.Invalid bound statement (not found): com.medatc.disinfection.mapper.fdn.FilesMapper.selectFilesByIds
原因: