自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 springboot集成kafka,@KafkaListener重复消费问题

springboot集成kafka,@KafkaListener重复消费问题

2022-10-14 11:26:44 4505 1

原创 修改springboot默认的依赖,以spring-boot-dependencies作为版本控制

最近导入mysql依赖,发现默认的是8.0.25,里面方法有修改,要改为8.0.11;网上很多文章都是说修改项目父工程的标签,如下<properties> <mysql.version>8.0.11</mysql.version> <log4j.version>2.17.0</log4j.version> <logback.version>1.2.9</logback.versi

2021-12-27 10:08:37 2328

原创 seata使用XA模式报错 Cause: java.lang.reflect.UndeclaredThrowableException] with root cause

2021-12-04 22:27:35.384 INFO 15364 --- [nio-9801-exec-4] i.seata.tm.api.DefaultGlobalTransaction : Begin new global transaction [192.168.0.102:8092:6188151447699370855]java.lang.NullPointerException at com.alibaba.druid.util.MySqlUtils.createXAConnecti

2021-12-04 23:22:46 1906 5

原创 将本地项目添加到github/gitee/gitlab

1 在gitee/gitHub/gitlabeld的控制台上新建一个仓库, 进入本地项目文件目录打开git bash2、创建本地git 仓库,在gitbash中执行git init 执行完成后上图出现.git文件3、将本地仓库和远程仓库关联起来远程仓库地址在控制台复制 git remote add origin https://gitee.com/xxx/quatz.git4、将项目add到远程仓库git add . 或者git add vue-demo/5 将项目comm

2021-09-07 15:29:34 135

原创 2021-09-02

Error: ER_NO_SUCH_USER: The user specified as a definer (‘root’@‘localhost’) does not existgrant all on *.* to 'ROOT'@'%' identified by 'PASSWORD' with grant option;或者:grant all privileges on *.* to 'root'@'localhost';```刷新flush privileges;...

2021-09-02 20:16:54 49

原创 springboot调用redis方法栈溢出

Servlet.service() for servlet [dispatcherServlet] threw exceptionjava.lang.StackOverflowError: null这个问题乍看很奇怪,明明明明返回成功了,但是接口却一直重复调用,代码如下 @GetMapping("/redis/{key}") public String redis(@PathVariable("key")String key) { Boolean a = redisTemplat

2021-06-15 10:06:33 779

原创 数据库回滚问题

数据库回滚问题,今天遇到的小问题@Override public Result importExcel(MultipartFile file) throws IllegalAccessException, InstantiationException, IOException, InvalidFormatException { try { ImportExcel ei; ei = new ImportExcel(file,

2021-03-04 13:31:51 659 1

转载 Failed to read artifact descriptor for com.chen:common_utils:jar

IDEA maven 多模块打包问题总结在用IDEA构建maven多module项目时,碰到了一些问题,现在归纳总结如下。假如一个maven项目下分为几个module,分别是不同的服务,以及common模块,结构如下:shopping├── common├── mail-service├── order-service└── pay-service则shopping pom大概率是如下内容: <modelVersion>4.0.0</modelVersion>

2021-02-19 20:01:28 181

原创 idea 中database连接pgsql后 报org.postgresql.util.PSQLException: ERROR: column t.relhasoids does not exist

idea 中database连接pgsql ,不显示表结构,只显示序列。报org.postgresql.util.PSQLException: ERROR: column t.relhasoids does not exist第一步第二步保存,刷新数据库即可

2021-02-04 21:27:41 2788

原创 Parameter ‘ids‘ not found. Available parameters are [array, arg0]

Parameter ‘ids’ not found. Available parameters are [array, arg0]mabaties在批量删除,接收数组或者集合时,写法是不同的接收数组错误写法int deleteCoinvoiceInfoByCoids(@Param("ids") Long[] ids);<update id="deleteCoinvoiceInfoByCoids" > update base_coinvoice_info set del

2021-02-04 19:26:32 7245 7

原创 nested exception is java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax

今天进行查询的时候,遇到此错误nested exception is java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ’GROUP BY pay_time, pay_type_code, park

2020-09-17 11:15:26 12565 2

原创 查询数据库一直提示mapper和xml对不上,低级错误!

Invalid bound statement (not found): com.xuecheng.ucenter.dao.XcMenuMapper.selectPermissionByUserId搞了快一个小时,一直在核对namespace,方法id,实体路径,包名啊如图,看起来包路径一点问题没有,但是问题就出在,创建resource目录下面包路径时出错idea在resources下不能创建package,只能创建Directory,文件夹下面要想创建文件夹,就不能以(.)的形式,例如test.m

2020-08-20 22:29:56 4687

原创 @PathVariable和 @RequestParam使用区别

@PathVariable和 @RequestParam区别1、@PathVariable 是将url中的参数和方法形参绑定@GetMapping("/teachplan/list/{courseId}")public TeachplanNode findTeachPlanList(@PathVariable("courseId") String courseId) { return null ;}如图,完整的请求url是localhost:port/teachplan/list/123 ,然

2020-08-04 15:06:19 719

原创 SpringBoot整合redis启动报错

SpringBoot整合redis启动报错No qualifying bean of type ‘org.springframework.data.redis.connection.RedisConnectionFactory’<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId

2020-08-03 08:59:08 1216

原创 nginx使用遇到的不容易察觉的问题,巨坑!

nginx配置转发地址漏了斜杆 “/”配置文件location /openapi/search/ { proxy_pass http://search_server_pool/search;} #后端搜索apiupstream search_server_pool{ server 127.0.0.1:40100 weight=10;}如上,转发地址search后面没加斜杆"/",但是浏览器拼接的地址是完整的http://ucenter.xuecheng.com/openapi/s

2020-07-31 17:18:44 120

原创 logstach启动成功,但是连接mysql数据库出错

logstach启动成功,但是同步mysql数据出错今天同步索引库时一直连不上mysql,找了半天问题,最后定位是引用的mysql的jar包版本有问题Unable to connect to database. Tried 1 times {:error_message=>"Java::ComMysqlJdbcExceptionsJdbc4::CommunicationsException: Communications link failure\n\nThe last packet succes

2020-07-30 14:51:29 589

原创 InputStream和InputStreamReader的区别

InputStreamInputStream获取的是字节输入流,InputStreamReader获取的是字符输入流,InputStream inputStream = process.getInputStream(); //得到字节流//转成字符流InputStreamReader reader = new InputStreamReader(inputStream, "GBK");例如上图,获取到字节流后,但是实际我们需要打印的是字符,就可以这样转换InputStream和ReaderR

2020-07-27 22:57:30 1444

原创 SpringBoot启动类@SpringBootApplication

@SpringBootApplication探索@Target(ElementType.TYPE)@Retention(RetentionPolicy.RUNTIME)@Documented@Inherited@SpringBootConfiguration@EnableAutoConfiguration@ComponentScan(excludeFilters = { @Filter(type = FilterType.CUSTOM, classes = TypeExcludeFilte

2020-07-13 19:31:42 125

空空如也

空空如也

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

TA关注的人

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