Commit a41c2ac9 authored by 李庆科's avatar 李庆科

feat:sprongcloud 启动成功、注册成功

parent 22daa5b6
......@@ -42,6 +42,11 @@ public class TokenAndPermissionInterceptor implements HandlerInterceptor {
String requestURI = request.getRequestURI();
requestURI = requestURI.replaceAll("/+", "/");
// 自定义白名单:/api/** 路径不需要认证
if (requestURI.startsWith("/api/")) {
requestURI = requestURI.substring(4);
}
Boolean noneSecurityFlag = AntPathMatcherUtil.getAntMatchFLag(requestURI, request.getContextPath(),
AuthConfigExpander.getNoneSecurityConfig());
if (noneSecurityFlag) {
......
......@@ -19,12 +19,12 @@
</appender>
<!--默认所有的包以info-->
<root level="info">
<root level="debug">
<appender-ref ref="STDOUT"/>
</root>
<!--本项目的日志级别-->
<logger name="cn.stylefeng" level="info" additivity="false">
<logger name="cn.stylefeng" level="debug" additivity="false">
<appender-ref ref="STDOUT"/>
</logger>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment