![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringMVC
LittleLeeZi
这个作者很懒,什么都没留下…
展开
-
feign api controller不需要再写@RequestBody和@RequestParam
如果是Controller实现api接口,在api中已经写了@requestBody和@RequestParam,在controller不想写了,就可以加如下配置import org.apache.commons.lang3.StringUtils;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.boot.autoconfigure.http.HttpMessageCo原创 2021-01-11 17:52:40 · 1808 阅读 · 2 评论 -
feign api Ambiguous mapping
@Configuration@ConditionalOnClass({Feign.class})public class FeignConfig { @Bean public WebMvcRegistrations feignWebRegistrations() { RequestMappingHandlerMapping handlerMapping = this.requestMappingHandlerMapping(); return new .原创 2021-01-11 17:47:47 · 1055 阅读 · 4 评论 -
org.springframework.web.multipart.MultipartException: The current request is not a multipart request
SpringMorg.springframework.web.multipart.MultipartException: The current request is not a multipart request原创 2014-07-17 09:34:34 · 15881 阅读 · 2 评论 -
后台程序返回的json值包含<pre></pre>
今天做程序的时候后台返回的json值应该是{"success",true}response.setContentType("text/html; charset=UTF-8");原创 2014-07-18 18:33:58 · 1599 阅读 · 0 评论