![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
bug修复
会飞的迪迦
努力脱离舒适圈
展开
-
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 · 1438 阅读 · 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 · 2870 阅读 · 0 评论 -
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 · 1833 阅读 · 0 评论 -
如何使用 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 · 217 阅读 · 0 评论 -
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 阅读 · 0 评论 -
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 · 1971 阅读 · 0 评论