java 问题汇总

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   原因:

  

转载于:https://www.cnblogs.com/qq1069284034/p/11460616.html

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值