diff --git a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java index 22d6f61..ba519c7 100644 --- a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java +++ b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java @@ -84,6 +84,9 @@ public class ShiroConfig { } // 配置不会被拦截的链接 顺序判断 + filterChainDefinitionMap.put("/expert/expert/listadminCMS", "anon"); //cms专家模块不拦截 + filterChainDefinitionMap.put("/expert/expert/directioncalListCMS", "anon"); //cms专家模块不拦截 + filterChainDefinitionMap.put("/expert/expert/CMSexpinfo", "anon"); //cms专家模块不拦截 filterChainDefinitionMap.put("/cms/front/**", "anon"); //cms不拦截 filterChainDefinitionMap.put("/newsWebsocket/**", "anon");//CMS模块 filterChainDefinitionMap.put("/expert/expert/userRegisterexp", "anon"); //专家注册 diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java index 6f96249..dd9e3ca 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java @@ -721,14 +721,14 @@ public class ExpertController extends JeecgController { } @ApiOperation(value="专家列表研究方向CMS列表", notes="专家列表研究方向CMS列表") - @GetMapping(value = "directioncalListCMS") + @GetMapping(value = "/directioncalListCMS") public Result> directioncalListCMS() { List disciplineFieid =disciplineFieidService.list(); return Result.OK(disciplineFieid); } @ApiOperation(value="专家CMS详细信息需要的,参数为专家的id", notes="专家CMS详细信息需要的,参数为专家的id") - @GetMapping(value = "CMSexpinfo") + @GetMapping(value = "/CMSexpinfo") public Result CMSexpinfo(@RequestParam(name="id",required=true) String id) { Expert expert = expertService.getById(id); SysUser sysUser=sysUserService.query().eq("username",expert.getSeusername()).one();