自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

原创 使用shardingsphere分表遇到的坑

但是格式是对应上的,最后经过跟踪源码,发现shardingsphere转换时间用的是DateTimeFormatter,所以只能转换成yyyy-MM-dd HH:mm:ss,所有如果想用这个中间件,就只能适应它的时间格式。提示:Invalid datetime-lower, datetime pattern should be `yyyy-MM-dd`, value is `2013-01-01`

2023-09-23 13:44:28 466

原创 for循环和stream流速度测试demo

This is an InsCode Widget.

2023-06-05 16:28:20 104

原创 Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded 问题解决

之前部署环境的时候碰到过,长时间不部署新项目就忘记了怎么解决的,这种问题一般都是在新部署项目的时候出现有多种解决办法,我采用其中一种在启动类的 @SpringBootApplication注解加上exclude= DataSourceAutoConfiguration.class...

2022-04-26 16:30:15 281

原创 maven 打包 跳过 Test的方式

在pom.xml文件中加入如下代码<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration></pl

2022-04-26 16:27:37 303

原创 Required request parameter ‘userName‘ for method parameter type String is no

这个问题是访问接口的时候,没有填写对应的参数,把参数加上就好了

2022-03-31 17:58:32 6222

原创 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 270

原创 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 907

原创 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 1099

原创 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 646

原创 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 6019

原创 Error attempting to get column ‘failure_msg‘ from result set

原因是由于实体类中属性的类型和数据库表中的字段类型不一致;我这里是由于数据库类型是clob,实体类中的用的String,所以报错了;将实体类中的String改成Clob,问题解决。

2021-09-09 16:40:07 250

原创 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 655

原创 同样的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 1565

原创 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 6517

原创 CentOS 7 64bit 安装MySQL5.7.34

下载mysql安装包,这里选择的是5.7.34版本,系统为centOS7,64bitMySQL官网地址https://www.mysql.com/操作如下:有的linux可能内嵌了mariaDB,由于mariaDB与mysql同时存在可能会出现冲突,因此先检查并删除linux上内嵌的mariaDB,操作如下:#检查是否存在mariaDByum list installed | grep mariadb#移除yum -y remove mariadb-libs.x...

2021-08-10 15:00:02 234

原创 nested exception is java.sql.SQLSyntaxErrorException: SELECT command denied to user

JdbcTemplete查询MySQL不存在的实例名报的错,不要相信它报的错,本地调用报错提示和服务器上提示的IP地址不一样,这种情况可以考虑是不是实例名不对

2021-08-09 17:12:43 3615

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除