From 3879aa062f49b7753b2df6ee59a70071f58d5056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=B6=E4=B8=9C?= <1654135867@qq.com> Date: Wed, 6 Nov 2024 11:11:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=93=E5=AE=B6=E9=83=A8=E5=88=86CMS?= =?UTF-8?q?=E4=B8=8D=E6=8B=A6=E6=88=AA=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/jeecg/config/shiro/ShiroConfig.java | 3 +++ .../modules/demo/expert/controller/ExpertController.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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();