update 正式环境配置文件,增加minio和redis
,屏蔽actuator
This commit is contained in:
@@ -94,7 +94,6 @@ public class ShiroConfig {
|
||||
filterChainDefinitionMap.put("/sys/common/pdf/**", "anon");//pdf预览
|
||||
filterChainDefinitionMap.put("/generic/**", "anon");//pdf预览需要文件
|
||||
filterChainDefinitionMap.put("/", "anon");
|
||||
filterChainDefinitionMap.put("/doc.html", "anon");
|
||||
filterChainDefinitionMap.put("/**/*.js", "anon");
|
||||
filterChainDefinitionMap.put("/**/*.css", "anon");
|
||||
filterChainDefinitionMap.put("/**/*.html", "anon");
|
||||
@@ -111,12 +110,13 @@ public class ShiroConfig {
|
||||
|
||||
//filterChainDefinitionMap.put("/druid/**", "anon");
|
||||
if ("false".equals(production)){
|
||||
filterChainDefinitionMap.put("/doc.html", "anon");
|
||||
filterChainDefinitionMap.put("/swagger-ui.html", "anon");
|
||||
filterChainDefinitionMap.put("/swagger**/**", "anon");
|
||||
filterChainDefinitionMap.put("/webjars/**", "anon");
|
||||
filterChainDefinitionMap.put("/v2/**", "anon");
|
||||
}
|
||||
|
||||
filterChainDefinitionMap.put("/actuator", "anon");
|
||||
//积木报表排除
|
||||
filterChainDefinitionMap.put("/jmreport/**", "anon");
|
||||
filterChainDefinitionMap.put("/**/*.js.map", "anon");
|
||||
|
||||
@@ -48,7 +48,7 @@ public class JwtFilter extends BasicHttpAuthenticationFilter {
|
||||
executeLogin(request, response);
|
||||
return true;
|
||||
} catch (Exception e) {
|
||||
throw new AuthenticationException("Token失效,请重新登录", e);
|
||||
throw new AuthenticationException("Token失效,请重新登录");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user