![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
exception
咸淡正好
这个作者很懒,什么都没留下…
展开
-
Required request parameter ‘userName‘ for method parameter type String is no
这个问题是访问接口的时候,没有填写对应的参数,把参数加上就好了原创 2022-03-31 17:58:32 · 6368 阅读 · 0 评论 -
apache camel遇到的问题:... because of No language could be found for: jsonpath
because of No language could be found for: jsonpath原创 2022-03-08 17:20:55 · 291 阅读 · 0 评论 -
Failed to process, please exclude the tableName or statementId 动态表名mybatis plus
Failed to process, please exclude the tableName or statementIdmybatis-plus使用注解写sql的时候,传入动态表名#{tableName}换成${tableName},问题解决原创 2021-09-28 14:52:21 · 936 阅读 · 0 评论 -
lineNumber: 1; columnNumber: 355; 元素内容必须由格式正确的字符数据或标记组成
Caused by: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException;lineNumber: 1; columnNumber: 355; 元素内容必须由格式正确的字符数据或标记组成原因是SQL里 <(小于)号 , >(大于)号 ,会被认为是括号,需要额外注意,解决:将 < 号换成 &...原创 2021-09-28 14:10:57 · 1133 阅读 · 0 评论 -
spring boot 启动后自动停止,datesource closed
遇到这种情况,检查一下是否有maven包没有导,我这里是缺少了基础包:spring-boot-starter-web<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId></dependency>...原创 2021-09-17 18:02:52 · 704 阅读 · 0 评论 -
Failed to introspect Class [springfox.documentation.spring.web.ObjectMapper
springboot集成swagger2的时候报错,最后发现是spring-boot-starter-web这个包没有导入;swagger2依赖的包如下:<!--swagger--><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId></dep.原创 2021-09-09 17:32:54 · 6164 阅读 · 0 评论 -
Error attempting to get column ‘failure_msg‘ from result set
原因是由于实体类中属性的类型和数据库表中的字段类型不一致;我这里是由于数据库类型是clob,实体类中的用的String,所以报错了;将实体类中的String改成Clob,问题解决。原创 2021-09-09 16:40:07 · 266 阅读 · 0 评论 -
spring boot 项目启动报错, error :testWhileIdle is true, validationQuery not set
主要是使用阿里的druid报的错,pom如下:<dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>1.1.17</version></dependency>只要在yml配置文件中加上以下代码就ok,druid: #指明连接原创 2021-09-03 09:57:47 · 717 阅读 · 0 评论 -
同样的SQL,换数据库就执行失败;functionally dependent on columns in GROUP BY clause; this is incompatible with
同样的SQL,在不同的环境执行了,报错,如下图:不是SQL语句的问题,是MySQL数据库本身的问题;原因是:sql_mode里面,group by 与 only_full_group_by不兼容。先查看报错的那个数据库的sql_mode(下图是修改后的,主要是让你们看sql):解决:修改my.cnf文件,在文件末尾加上一行:sql_mode = STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION..原创 2021-08-18 16:24:59 · 1588 阅读 · 0 评论 -
nested exception is java.sql.SQLSyntaxErrorException: SELECT command denied to user
JdbcTemplete查询MySQL不存在的实例名报的错,不要相信它报的错,本地调用报错提示和服务器上提示的IP地址不一样,这种情况可以考虑是不是实例名不对原创 2021-08-09 17:12:43 · 3697 阅读 · 0 评论 -
Error: Unable to access jarfile test-0.0.1-SNAPSHOT.jar
今天在做测试的发现的问题java程序调用远程服务器的shell,执行启动程序的命令提示了这个错误;shell如下:#!/bin/bashBUILD_ID=dontKillMe nohup java -jar test-0.0.1-SNAPSHOT.jar >> /opt/projects/test/nohup.out 2>&1 &shell的路径为:/opt/projects/test/start.sh在服务器上打开终端,直接执行/opt/pr原创 2021-08-10 17:48:44 · 6631 阅读 · 0 评论