Browse Source

接口权限

zhoutg 6 years ago
parent
commit
751eca7dca

+ 2 - 0
knowledgeman-service/src/main/java/com/diagbot/config/ResourceServerConfigurer.java

@@ -31,6 +31,8 @@ public class ResourceServerConfigurer extends ResourceServerConfigurerAdapter {
                 .antMatchers("/concept/getConceptListByType").permitAll()
                 .antMatchers("/file/uploadImage").permitAll()
                 .antMatchers("/dictionaryInfo/getList").permitAll()
+                .antMatchers("/commonconcept/getConceptMapByNameAndType").permitAll()
+                .antMatchers("/commonconcept/index").permitAll()
                 .antMatchers("/**").authenticated();
 //                .antMatchers("/**").permitAll();
     }

+ 2 - 0
knowledgeman-service/src/main/java/com/diagbot/config/security/UrlAccessDecisionManager.java

@@ -94,6 +94,8 @@ public class UrlAccessDecisionManager implements AccessDecisionManager {
                 || matchers("/concept/getConceptListByType", request)
                 || matchers("/file/uploadImage", request)
                 || matchers("/dictionaryInfo/getList", request)
+                || matchers("/commonconcept/getConceptMapByNameAndType", request)
+                || matchers("/commonconcept/index", request)
                 || matchers("/", request)) {
             return true;
         }