zoukankan      html  css  js  c++  java
  • java 问题汇总2

    1.自动加载出错
      require a bean of ....
      The injection point has the following annotations:
      - @org.springframework.beans.factory.annotation.Autowired(required=true)
      排查步骤:
        1.1检查springboot 项目的配置文件;
        1.2@SpringBootApplication 和@Configuration 注解重合,且@Configuration优先级更高,但配置不正确
            1.3 数据库连接有问题,使用了连接池,但是没有配置连接池的config
    
    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
      原因:
    
    10.WebServerException: Could not load key store 'null'
      原因:spring-boot中的application.properties里配置https证书路径错误
    
    11.Maven打包:去掉项目版本号
      <build><finalName>medatc-cloud-core</finalName></build>
    
    12. verify: Detected task failure
      原因:docker镜像打包不成功,是由于pom文件中缺少配置:
      <!--spring-boot-maven-plugin -->
      <plugin>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-maven-plugin</artifactId>
          <configuration>
              <fork>true</fork>
          </configuration>
          <executions>
              <execution>
                  <goals>
                      <goal>repackage</goal>
                  </goals>
              </execution>
          </executions>
      </plugin>
    
    
    13. 日志打印的问题:
      现象:出现空指针,找不到打印的行及详情,
      解决:e.getLocalizedMessage()
    扩展

    14.使用CsvReader读取csv文件遇到Bom头的问题:
    扩展


     
  • 相关阅读:
    鸟哥的Linux私房菜基础学习篇(第三版)——阅读笔记(二)
    鸟哥的Linux私房菜基础学习篇(第三版)——阅读笔记(一)
    Git的使用流程及常用命令汇总
    Protocol buffers编写风格指南
    Effective Go中文版(更新中)
    go package 学习笔记 —— strconv(string与其他基本数据类型(int, float, bool)的转换)
    在iis上部署 AngularJS
    asp.net Core 2.0部署到iis上
    ABP 运行前端代码
    Asp.NET Core2.0 EF ABP Postgresql 数据迁移
  • 原文地址:https://www.cnblogs.com/qq1069284034/p/12113235.html
Copyright © 2011-2022 走看看