Browse Source

Update MaxKeyMvcConfig.java

Crystal.Sea 4 years ago
parent
commit
3ddfa0fe76
1 changed files with 5 additions and 0 deletions
  1. 5 0
      maxkey-web-maxkey/src/main/java/org/maxkey/MaxKeyMvcConfig.java

+ 5 - 0
maxkey-web-maxkey/src/main/java/org/maxkey/MaxKeyMvcConfig.java

@@ -41,6 +41,7 @@ import org.springframework.web.servlet.i18n.LocaleChangeInterceptor;
 @PropertySource(ConstantsProperties.maxKeyPropertySource)
 @PropertySource(ConstantsProperties.maxKeyPropertySource)
 public class MaxKeyMvcConfig implements WebMvcConfigurer {
 public class MaxKeyMvcConfig implements WebMvcConfigurer {
     private static final  Logger _logger = LoggerFactory.getLogger(MaxKeyMvcConfig.class);
     private static final  Logger _logger = LoggerFactory.getLogger(MaxKeyMvcConfig.class);
+    
     @Autowired
     @Autowired
     PermissionAdapter permissionAdapter;
     PermissionAdapter permissionAdapter;
     
     
@@ -119,6 +120,10 @@ public class MaxKeyMvcConfig implements WebMvcConfigurer {
                 //OAuth
                 //OAuth
                 .addPathPatterns("/oauth/v20/authorize")
                 .addPathPatterns("/oauth/v20/authorize")
                 .addPathPatterns("/oauth/v20/authorize/*")
                 .addPathPatterns("/oauth/v20/authorize/*")
+                
+                //online ticket Validate
+                .excludePathPatterns("/onlineticket/ticketValidate")
+                .excludePathPatterns("/onlineticket/ticketValidate/*")
                 ;
                 ;
         
         
         _logger.debug("add PermissionAdapter");
         _logger.debug("add PermissionAdapter");