zengxj пре 6 година
родитељ
комит
efdd7c622f
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/main/java/edu/math/diagnosis/config/WebSecurityConfig.java

+ 2 - 1
src/main/java/edu/math/diagnosis/config/WebSecurityConfig.java

@@ -126,7 +126,8 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
     public void configure(WebSecurity web) throws Exception {
         web.ignoring().antMatchers("/resources/**", "/static/**", "/**.js");
         web.ignoring().antMatchers(uploadProperties.getUploadPattern());
-        web.ignoring().antMatchers("/**/*.js", "/lang/*.json", "/**/*.css", "/**/*.map", "/**/*.png", "/**/*.jpg");
+        web.ignoring().antMatchers("/**/*.js", "/lang/*.json", "/**/*.css", "/**/*.map", "/**/*.png", "/**/*.jpg","/**/*.woff","/**/*.ttf");
+//        web.ignoring().antMatchers("/fonts/**");
         web.ignoring().antMatchers("/open/**");
         web.ignoring().antMatchers("/v2/api-docs",//swagger api json
                 "/swagger-resources/configuration/ui",//用来获取支持的动作