以这段请求为例
interceptorRegistration.addPathPatterns("/**").excludePathPatterns(
"/css/*",
"/js/*",
"/img/*",
"/index",
"/login"
);
在applicaiton.yml中配置了context-path
server:
port: 8080
servlet:
context-path: /community
这里不用管context-path,和controller那里的url保持一致即可