Browse Source

静态文件

wangqifan 3 years ago
parent
commit
bce7de6fcc

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

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

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

@@ -166,7 +166,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
                 .antMatchers("/metaUser/internalTest").permitAll()
                 .antMatchers("/metaUser/internalTest").permitAll()
                 .antMatchers("/metaShowRoomAsset/**").permitAll()
                 .antMatchers("/metaShowRoomAsset/**").permitAll()
                 .antMatchers("/u951658VPf.txt").permitAll()
                 .antMatchers("/u951658VPf.txt").permitAll()
-
+                .antMatchers("/u9s1658vPf.txt").permitAll()
                 // all other requests need to be authenticated
                 // all other requests need to be authenticated
                 .anyRequest().authenticated().and()
                 .anyRequest().authenticated().and()
                 // make sure we use stateless session; session won't be used to
                 // make sure we use stateless session; session won't be used to

+ 1 - 0
src/main/resources/static/u9s1658vPf.txt

@@ -0,0 +1 @@
+c093b42ff5429c47b4203f2736ba05c4