Spring Boot
栗子栗
一个程序员
展开
-
Spring Boot整合Web容器的原理(以Tomcat为例)
ServletWebServerApplicationContext.java @Override protected void onRefresh() { super.onRefresh(); try { createWebServer(); } catch (Throwable ex) {...原创 2018-12-05 19:00:56 · 1790 阅读 · 0 评论 -
解决Springboot中给Interceptor配置的excludePathPatterns无效的问题
在使用WebMvcConfigurer对Interceptor进行配置的时候遇到了配置excludePathPatterns无效的问题,下面是出问题的代码Interceptor的配置如下,如果发现用户没有登录就重定向到主页面"index"public class LoginInterceptor implements HandlerInterceptor { public boole...原创 2018-11-24 22:15:52 · 36750 阅读 · 4 评论 -
Springboot中WebMvcConfigurer中可配置项全解
package hello.configuration;import org.springframework.boot.autoconfigure.web.ResourceProperties;import org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties;import org.springframewo...原创 2018-11-23 18:25:15 · 8864 阅读 · 0 评论