
问题汇总
Li--AiTao
这个作者很懒,什么都没留下…
展开
-
java 读取 excel 文件内数字显示为小数点或者科学计数法问题
【代码】 java 读取 excel 文件内数字显示为小数点或者科学计数法问题。原创 2022-08-24 10:45:18 · 1455 阅读 · 1 评论 -
Java命令行运行错误: 找不到或无法加载主类
找不到或无法加载主类的原因有很多,此处仅仅记载下自己这里的问题。随着后续再遇到的相应的问题继续更新。1、解决:将project structural里的modules删除后,重新加载一下,然后重新build原创 2022-02-08 09:15:34 · 773 阅读 · 0 评论 -
Requested bean is currently in creation: Is there an unresolvable circular reference?
问题背景:在使用SpringBoot的mybatis-plus框架时,启动时遇到问题,问题如下:原因:出现了A接口调用B接口,B接口又调用A的Spring 循环注入情况。解决:不在构造函数中去初始化该调用接口,改为自动调用,如下图...原创 2021-03-01 19:06:48 · 1506 阅读 · 0 评论 -
邮箱报错javax.mail.AuthenticationFailedException: 535 Login Fail. Please enter your authorization......
问题场景:本人在做一个自动轮询发送邮件的工程,然后出现以下错误。问题描述:解决:发现是未进行配置邮箱授权,登录邮箱,获取授权码如下图,POP3/SMTP服务授权码(IMAP/SMTP服务授权码)两个都可以,获取后,配置到yml文件中。password位置即为授权码spring: mail: #邮箱服务器地址 host: smtp.qq.com username: xxx9@qq.com password: xxx default-enco原创 2021-01-25 11:46:22 · 1831 阅读 · 1 评论 -
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
问题描述:运行程序时遇到问题官方帮助:Unlike many other errors, this exception is not generated by the Maven core itself but by a plugin. As a rule of thumb, plugins use this error to signal a failure of the build because there is something wrong with the dependencies原创 2021-01-25 10:49:00 · 1061 阅读 · 0 评论 -
Error:org.springframework.boot等不存在
问题描述:运行时遇到问题:Error:org.springframework.boot等不存在解决方法:勾选该选项:将ide的运行环境依托给maven原创 2021-01-25 09:46:01 · 177 阅读 · 0 评论 -
Error:java:无效的源发行版:12
问题描述:程序无法运行,无效的源发行版:12错误。解决:都换成与自己jdk对应的版本,如下图所示,本人是jdk8,那么就统统换成8javaCompiler中,Target bytecode version这里一定要与自己的jdk版本对应。...原创 2021-01-25 08:45:33 · 2221 阅读 · 1 评论 -
Every derived table must have its own alias
背景:在进行联表查询时,出现了Every derived table must have its own alias的错误。错误代码: SELECT t1.id FROM zhfw_service_reply t1 JOIN( SELECT id FROM zhfw_service_theme t3 WHERE updated_time < #{time} AND section_code = 'serv原创 2021-01-12 14:36:17 · 289 阅读 · 0 评论 -
MySQL常见问题会总及复习
1、concat()函数1)含义:将多个字符串连接成一个字符串。2)语法:concat(str1,str2......)返回结果为连接参数产生的字符串,如果有任何一个参数为null,则返回值为null。注意,在sql语句中,字符如%号需要加单引号‘’。...原创 2020-09-02 20:00:30 · 185 阅读 · 0 评论 -
mybatis问题汇总
一、常识性问题1、在mabatis中,判断参数是否相等,用的也是==。2、引号中的相等要使用单引号。3、二、原创 2020-12-23 14:56:32 · 214 阅读 · 0 评论 -
mybatis 报错 invalid comparison: java.time.LocalDateTime and java.lang.String
错误背景: 需要判断时间类型是否为‘’的形式,然后出现报错 invalid comparison: java.time.LocalDateTime and java.lang.String。错误的引起: <if test="(search.startTime != null or search.startTime != '') and (search.endTime != null or search.endTime != '' )">...原创 2021-01-05 17:24:18 · 10852 阅读 · 1 评论 -
HikariPool-1 - Shutdown initiated... HikariPool-1 - Shutdown completed.报错
问题1:HikariPool-1 - Shutdown initiated... HikariPool-1 - Shutdown completed.程序启动后立马关闭问题背景:搭建好Springboot时出现问题,项目启动后立即关闭了。问题如下最后发现是缺少spring-boot-starter-web依赖造成的,在pom文件中如果没有该依赖,添加该依赖,如下: <dependency> <groupId>org.springframewo原创 2020-12-31 14:49:28 · 5820 阅读 · 0 评论 -
报错org.thymeleaf.exceptions.TemplateInputException: Error resolving template
遇到报错:Caused by: org.thymeleaf.exceptions.TemplateInputException: Error resolving template "content/service-reply/themeDetailList/123123", template might not exist or might not be accessible by any of the configured Template Resolvers在controller层请求处理完原创 2020-12-05 09:04:39 · 1187 阅读 · 1 评论 -
查找问题总结
一、联调总结Springboot框架下的丁丁项目设置断点后,重新debug一下。 哪一个方法出现问题,从controller中进相应的service,然后从service中进到mapper中, 在从mapper进到resource相应的mapper.xml,找到对哪个数据库的操作,找到数据库。 联调时,buid成war包,用tomcat运行,可以省去需要开着项目的麻烦。二、前后台寻找bug总结Springboot框架下的丁丁项目首先寻找问题是出在前端还是后台。在f12模式下,看前端与后原创 2020-08-17 15:41:26 · 472 阅读 · 0 评论 -
SpringBoot项目中遇到的问题
1、Tomcat中文乱码问题(百度可查)对于乱码问题,本质原因就一个:字节流解码为字符串时,使用了错误的字符集(和编码所用字符集不一致)!我们来到tomcat目录的conf子目录中,找到一个名为 "logging.properties" 的文件,打开这个文本文件,找到如下配置项:java.util.logging.ConsoleHandler.encoding =UTF-8将 UTF-8 修改为 GBK,修改后的效果为:java.util.logging.ConsoleHandler..原创 2020-07-22 10:41:18 · 4019 阅读 · 0 评论