logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

【springCloud搭建】六、集成RabbitMQ

一、所需jar包<spring-boot.version>2.3.0.RELEASE</spring-boot.version><!--rabbitmq--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-

文章图片
#rabbitmq#spring boot#java
对json进行key字母排序

package cn.wcy.util;import com.alibaba.fastjson.JSON;import com.alibaba.fastjson.JSONArray;import com.alibaba.fastjson.JSONObject;import com.alibaba.fastjson.parser.Feature;import java.util.*;public c

#json#java
mybatis报错 : Caused by: java.lang.IllegalStateException: Can not find owner from table.

示例:select * from (select id from test) as a GROUP BY a.idCaused by: java.lang.IllegalStateException: Can not find owner from table.上面这段代码在navicat内可以正常运行,通过mybatis运行就会抛出(Caused by: java.lang.IllegalSta

#sql#mybatis
gateway网关调用报 reactor.netty.http.client.HttpClient.chunkedTransfer(Z)Lreactor/netty/http/client/HttpC

reactor.netty.http.client.HttpClient.chunkedTransfer(Z)Lreactor/netty/http/client/HttpClient;这个错误是因为spring-boot-starter-parent和spring-cloud-starter-gateway版本不一致造成的

#java
idea下git报No such file or directory

打开项目目录找到.git文件夹然后找到config文件打开,修改url地址[core]repositoryformatversion = 0filemode = falsebare = falselogallrefupdates = truesymlinks = falseignorecase = true[remote "origin"]url = http://用户名:密码@git地址fetc

#git#github#idea
记录一下idea git pull时报 Push to origin/master was rejected,亲测有效

推送git仓库到远端服务器失败,提示以下错误信息:! [remote rejected](shallow update not allowed)这是因为本地仓库不是完整clone的,使用了depth参数。git clone --depthLinux内核仓库太大了,为了方便的确使用了 depth 1 clone的仓库。解决这个问题有几个方法:1、把完整仓库历史记录下载下来,仓库太大需要很长时间。gi

#git#intellij idea
springboot项目打包时不打依赖包

在项目的pom文件内增加下面的配置。

文章图片
#spring boot#mybatis#java
【springCloud搭建】五、集成mybatis-plus

上篇文章传送门:【springCloud搭建】三、集成springCloudGateway网关

文章图片
#mysql#restful#java
mybatis报 java.lang.IndexOutOfBoundsException: Index: 0

queryWrapper.lambda().in(BUser::getId,idListVo.getIds());mybatisPlus使用lambda表达式进行where拼接的时候如果使用 in 传入的集合没有做长度判断的时候就会抛出java.lang.IndexOutOfBoundsException: Index: 0因为mybatisPlus源码内有对传入的集合做一个固定get0的操作改成

#mybatis
    共 14 条
  • 1
  • 2
  • 请选择