♻️ 优化网关、认证中心配置,方便架构调整

This commit is contained in:
冷冷 committed 2024-04-20 22:55:39 +08:00
1 parent 3d85bb87f8
commit 5138c1e2b8
2 files changed
+4 -3

No files matched your search

@@ -100,7 +100,8 @@ public class AuthorizationServerConfiguration {
AntPathRequestMatcher[] requestMatchers = new AntPathRequestMatcher[]{
AntPathRequestMatcher.antMatcher("/token/**"), AntPathRequestMatcher.antMatcher("/actuator/**"),
AntPathRequestMatcher.antMatcher("/css/**"), AntPathRequestMatcher.antMatcher("/error")};
AntPathRequestMatcher.antMatcher("/code/**"), AntPathRequestMatcher.antMatcher("/css/**"),
AntPathRequestMatcher.antMatcher("/error")};
http.authorizeHttpRequests(authorizeRequests -> {
// 自定义接口、端点暴露