From 60163c2fb5098fc522f8e80b131128d2c9a33e42 Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Fri, 26 Jan 2018 14:44:05 +0800 Subject: [PATCH] 组织配置 --- src/main/java/com/moral/security/ResourceServerConfiguration.java | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/moral/security/ResourceServerConfiguration.java b/src/main/java/com/moral/security/ResourceServerConfiguration.java index a69f9b4..edde722 100644 --- a/src/main/java/com/moral/security/ResourceServerConfiguration.java +++ b/src/main/java/com/moral/security/ResourceServerConfiguration.java @@ -27,5 +27,23 @@ .authorizeRequests() .antMatchers("/test/**").permitAll() .and().exceptionHandling().accessDeniedHandler(new OAuth2AccessDeniedHandler()); + + /*http.requestMatchers() + .antMatchers("/screen/**") + .and() + .authorizeRequests() + .antMatchers("/screen/**").permitAll() + .and() + .exceptionHandling() + .accessDeniedHandler(new OAuth2AccessDeniedHandler());*/ + + /*http.requestMatchers() + .antMatchers("/mobile/**") + .and() + .authorizeRequests() + .antMatchers("/mobile/**").permitAll() + .and() + .exceptionHandling() + .accessDeniedHandler(new OAuth2AccessDeniedHandler());*/ } } \ No newline at end of file -- Gitblit v1.8.0