springboot
南顾北衫
这个作者很懒,什么都没留下…
展开
-
springboot访问本地静态资源出现400错误
路径中有" < > [ \ ] ^ `` { | } 导致访问出现400错误Tomcat 8.5.32引入了HTTP连接器的两个配置属性,在URL路径和查询字符串中处理这些字符的限制。这两个属性是:relaxedPathChars -路径中允许使用未编码的字符relaxedQueryChars -查询字符串中允许使用未编码的字符Spring Boot嵌入式Tomcat服务器,则可以使用配置属性 server.tomcat.relaxed-path-chars和server.tom原创 2020-11-11 17:01:47 · 3090 阅读 · 1 评论 -
spring oauth refresh-token出现401 或者org.springframework.security.web.authentication.preauth.PreAuthent
spring oauth refresh-token 401问题解决: @Override public void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception { oauthServer.allowFormAuthenticationForClients(); oauthServer.checkTokenAccess("isAuthenticate原创 2020-08-19 20:55:50 · 629 阅读 · 0 评论 -
后端springmvc接受数组 axios delete请求
前端使用axios delete请求deleteBrandList( { params: { list: _this.array }, paramsSerializer: function (params) { return Qs.stringify(params, {arrayFormat: 'repeat'}) }原创 2020-05-25 16:42:35 · 728 阅读 · 0 评论 -
springboot2.x中的put,delete请求
springboot2.x想要接受delete、put的请求,需要在配置文件中加上spring.mvc.hiddenmethod.filter.enabled=true前端<form id="deleteForm" method="post"> <input type="hidden" name="_method" value="delete"></...原创 2020-04-10 14:42:15 · 566 阅读 · 0 评论 -
springboot静态资源访问和重定向问题
静态资源访问直接写名称路径重定向时加入控制器原创 2020-04-04 17:16:24 · 1413 阅读 · 0 评论