stylefeng / Guns

Guns基于SpringBoot 2,致力于做更简洁的后台管理系统,完美整合springmvc + shiro + mybatis-plus + beetl!Guns项目代码简洁,注释丰富,上手容易,同时Guns包含许多基础模块(用户管理,角色管理,部门管理,字典管理等10个模块),可以直接作为一个后台管理系统的脚手架!
Apache License 2.0
3.86k stars 1.59k forks source link

admin用户在资源查看里点详情报错 #105

Open ieayoio opened 2 years ago

ieayoio commented 2 years ago

接口返回

{"exceptionClazz":null,"exceptionTip":null,"exceptionPlace":null,"success":false,"code":"B0317","message":"无法访问未经授权的接口,未授权url为:/resource/getDetail","data":null}

控制台报错

2022-03-25 18:10:44.840 ERROR 146510 --- [nio-8080-exec-9] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is ServiceException(errorCode=B0317, userTip=无法访问未经授权的接口,未授权url为:/resource/getDetail, moduleName=kernel-d-auth, data=null)] with root cause

cn.stylefeng.roses.kernel.auth.api.exception.AuthException: 无法访问未经授权的接口,未授权url为:/resource/getDetail
    at cn.stylefeng.guns.core.security.base.BaseSecurityInterceptor.preHandle(BaseSecurityInterceptor.java:82)
    at org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:148)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1055)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:962)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)