소스 검색

开放woff/ttf

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",//用来获取支持的动作