drew há 5 anos atrás
pai
commit
f88bced035

+ 1 - 0
src/main/java/com/izouma/awesomeAdmin/config/WebMvcConfig.java

@@ -24,6 +24,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
         registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
         registry.addResourceHandler("/admin/**").addResourceLocations("classpath:/static/admin/");
         registry.addResourceHandler("/files/**").addResourceLocations("file:" + localPath);
+        registry.addResourceHandler("/MP_verify*").addResourceLocations("classpath:/");
     }
 
     @Bean

+ 1 - 1
src/main/java/com/izouma/awesomeAdmin/security/WebSecurityConfig.java

@@ -76,7 +76,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
                 .antMatchers("/401").permitAll()
                 .antMatchers("/404").permitAll()
                 .antMatchers("/500").permitAll()
-                .antMatchers("/test500").permitAll()
+                .antMatchers("/MP_verify*").permitAll()
                 // all other requests need to be authenticated
                 .anyRequest().authenticated().and()
                 // make sure we use stateless session; session won't be used to