spring
翟凤玺
万事开头难,中间难,结尾最难,但不要放弃!奥利给!!!
展开
-
SpringBoot @RequestBody 中校验入参
SpringBoot @RequestBody 中校验入参原创 2022-10-31 15:51:13 · 750 阅读 · 1 评论 -
mongo @CreatedDate @LastModifiedDate注解不生效
代码@Datapublic 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 · 1415 阅读 · 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 · 4196 阅读 · 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 · 2006 阅读 · 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 · 1723 阅读 · 1 评论 -
RestTemplate推送数据无响应的解决办法
导读A平台在给其他平台推送数据时,A平台调用其他平台接口成功,但无返回结果,导致消费机数据不消费。逻辑分析应该有推送多长时间无返回结果就为推送失败,这样的逻辑。代码分析推送源码RestTemplate restTemplate = new RestTemplate();ResponseResult responseResult = restTempla...原创 2018-04-17 14:57:56 · 6069 阅读 · 0 评论