自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 问答 (1)
  • 收藏
  • 关注

原创 Feign设置动态URL报Load balancer does not contain an instance for the service .com

Feign动态设置URL时,都必须写上配置字段url,不然会默认找的是你注册中心下的服务地址,但是你设置的动态url不在改注册中心下,从而报上面的错误,@FeignClient(valu "xxx",url = "EMPTY",fallba= xxx.class)参考博客...

2022-05-30 12:06:00 1445 1

原创 ThreadPoolTaskExecutor初始化报IllegalArgumentException

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'XXX-task' defined in class path resource [.../.../config/AsyncConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans

2022-01-19 12:20:45 2886

原创 springboot+mybatis+postgressql代码自动生成

1、添加需要的依赖<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd

2021-10-13 14:41:24 815

原创 Java 实体类转json对象,默认驼峰规则,如何改变转化规则

测试对象test通过new ObjectMapper().writeValueAsString(test)转成json字符串但需要转换成如下示例:{"StartTime":"2021-08-1715:09:08","EndTime":"2021-08-1715:14:08","Name":"张三","Age":12}解决方案:1.使用jackson包注意:导入打包需同上面的ObjectMapper导入的包一直通过new ObjectMapper().wri...

2021-08-18 17:14:46 1850

原创 如何使用 Spring application.properties 自定义 Jackson ObjectMapper?

当通过Feign传输json时,json字段不是使用常规的驼峰命名传输时;而是如下时{"StartTime":"2021-08-1715:09:08","EndTime":"2021-08-1715:14:08","Name":"张三","Age":12}则需要在配置里面加入如下配置 jackson: mapper: ACCEPT_CASE_INSENSITIVE_PROPERTIES: true property-naming-strategy: com....

2021-08-17 15:25:53 220

原创 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.....mapper.xxxMapper.selectByExample at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:232) ~[mybatis-3.5.0.jar:3.5.0] at org.ap...

2021-07-19 11:12:17 181

原创 Caused by: java.lang.IllegalArgumentException: Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate‘

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'XXX': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'XXX' defin.

2021-07-19 10:17:01 1978

原创 Mybatis-plus+Oracle代码生成器

Mybatis-plus+Oracle代码生成器首先先把所需依赖写上 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> <dependency>

2021-03-24 10:01:47 2675

空空如也

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

TA关注的人

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