![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring Cloud
Sky_Blue_Blue
为了蓝色的天和白色的云
展开
-
微服务调用数据出现415错误 Content type ‘application/xml;charset=UTF-8‘ not supported
1. 问题: 在微服务项目时,通过LoadBlance + restTemplate 完成 Consumer 与 Provider 交互时,发生 415 数据格式错误。但是,归根结底,其实就是MVC部分的问题。可能在Cloud使用时暴露出来了。 Controller 发送 POST 数据时,虽然已经配置了 @RestController注解以及,在返回方法的注解内部设置了返回数据接收类型@PostMapping(value = "xxx", produces = {"application/json;cha转载 2021-03-04 15:37:23 · 1211 阅读 · 1 评论 -
Spring security启动报错 Error creating bean with name 'springSecurityFilterChain' defined in class path
报错详细 Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChai...原创 2019-11-19 10:16:20 · 14342 阅读 · 2 评论