瀏覽代碼

EnableAopAuthorize

zhou-hao 7 年之前
父節點
當前提交
2b6c30272d

+ 3 - 0
hsweb-examples/hsweb-examples-oauth2/hsweb-examples-oauth2-client/src/main/java/org/hswebframework/web/example/oauth2/OAuth2ClientApplication.java

@@ -18,6 +18,8 @@
 
 package org.hswebframework.web.example.oauth2;
 
+import org.hswebframework.web.authorization.basic.configuration.EnableAopAuthorize;
+import org.hswebframework.web.authorization.basic.web.SessionIdUserTokenParser;
 import org.hswebframework.web.authorization.oauth2.client.OAuth2RequestService;
 import org.hswebframework.web.authorization.oauth2.client.OAuth2ServerConfig;
 import org.hswebframework.web.authorization.oauth2.client.simple.OAuth2ServerConfigRepository;
@@ -44,6 +46,7 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
 @Configuration
 @EnableCaching
 @EnableAspectJAutoProxy
+@EnableAopAuthorize
 public class OAuth2ClientApplication implements CommandLineRunner {
 
     public static void main(String[] args) {