
spring
翟凤玺
万事开头难,中间难,结尾最难,但不要放弃!奥利给!!!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SpringBoot @RequestBody 中校验入参
SpringBoot @RequestBody 中校验入参原创 2022-10-31 15:51:13 · 924 阅读 · 1 评论 -
mongo @CreatedDate @LastModifiedDate注解不生效
代码 @Data public class MongoCommonField { @Id private String id; @Version private long version; @CreatedDate private Date createdAt; @LastModifiedDate private Date modifiedAt; } 其中 @Id @Version是生效的 解决 普通数据源 在 Application原创 2022-05-24 11:09:48 · 1768 阅读 · 0 评论 -
‘org.springframework.data.mongodb.core.convert.MappingMongoConverter‘ that could not be found.
报错 *************************** APPLICATION FAILED TO START *************************** Description: Parameter 0 of constructor in org.springframework.data.mongodb.config.MongoAuditingRegistrar$MongoMappingContextLookup required a bean of type 'org.spring原创 2022-04-15 10:50:47 · 4402 阅读 · 0 评论 -
A bean with that name has already been defined in file [xxx] and overriding is disabled.
报错 *************************** APPLICATION FAILED TO START *************************** Description: The bean 'xxx', defined in class path resource [xxx.class], could not be registered. A bean with that name has already been defined in file [xxx.class] a原创 2022-04-15 10:46:46 · 2214 阅读 · 0 评论 -
报错:‘FeignRibbonClientAutoConfiguration‘ not loaded because @ConditionalOnClass did not find
报错信息 Description: Parameter 0 of method feignClient in com.xxx.config.FeignConfiguration required a bean of type 'org.springframework.cloud.openfeign.ribbon.CachingSpringLoadBalancerFactory' that could not be found. The following candidates were found bu原创 2022-03-23 14:40:42 · 2014 阅读 · 1 评论 -
RestTemplate推送数据无响应的解决办法
导读 A平台在给其他平台推送数据时,A平台调用其他平台接口成功,但无返回结果,导致消费机数据不消费。 逻辑分析 应该有推送多长时间无返回结果就为推送失败,这样的逻辑。 代码分析 推送源码 RestTemplate restTemplate = new RestTemplate(); ResponseResult responseResult = restTempla...原创 2018-04-17 14:57:56 · 6520 阅读 · 0 评论