此博客收集项目启动涉及到的警告知识:
s.d.s.w.r.p.ParameterDataTypeReader : Trying to infer dataType org.springframework.web.multipart.MultipartFile[]
意思是:扫描接口时发现使用了MultipartFile类型的数组进行接收,不是Spring 标准的类型,可以使用单独的类进行封装,也可以使用 String
进行接收,业务中使用 Convert.toLongArray()
进行转数组(我这里报的是MultipartFile类型的,没有对应的转换方法,所以使用的bean解决的,Convert.toLongArray()的前提是在接收Long类型的数组时)
-
Version mismatch in between Elasticsearch Client and Cluster: 7.6.2 - 7.5.0
-
2020-12-24 16:13:15.236 [restartedMain] WARN [crm,dev,172.16.0.195] [23145] c.c.c.w.s.c.DynamicSecurityFilter : Could not validate configuration attributes as the SecurityMetadataSource did not return any attributes from getAllConfigAttributes() 2020-12-24 16:13:16.186 [restartedMain] WARN [crm,dev,172.16.0.195] [23145] o.s.data.convert.CustomConversions : Registering converter from class org.springframework.data.geo.Point to interface java.util.Map as writing converter although it doesn't convert to a store-supported type! You might want to check your annotation setup at the converter implementation. 2020-12-24 16:13:16.186 [restartedMain] WARN [crm,dev,172.16.0.195] [23145] o.s.data.convert.CustomConversions : Registering converter from interface java.util.Map to class org.springframework.data.geo.Point as reading converter although it doesn't convert from a store-supported type! You might want to check your annotation setup at the converter implementation. 2020-12-24 16:13:16.186 [restartedMain] WARN [crm,dev,172.16.0.195] [23145] o.s.data.convert.CustomConversions : Registering converter from class org.springframework.data.elasticsearch.core.geo.GeoPoint to interface java.util.Map as writing converter although it doesn't convert to a store-supported type! You might want to check your annotation setup at the converter implementation. 2020-12-24 16:13:16.186 [restartedMain] WARN [crm,dev,172.16.0.195] [23145] o.s.data.convert.CustomConversions : Registering converter from interface java.util.Map to class org.springframework.data.elasticsearch.core.geo.GeoPoint as reading converter although it doesn't convert from a store-supported type! You might want to check your annotation setup at the converter implementation.
解决办法:
在yml文件中加入配置:
logging:
level:
root: INFO
org.springframework.data.convert.CustomConversions: ERROR
No URLs will be polled as dynamic configuration sources.
spring boot整合eureka时缺少配置
解决办法:在src/main/resources
下添加空的config.properties