stylefeng / Guns

Guns是一个现代化的Java应用开发框架,基于主流技术Spring Boot3 + Vue3 + JDK17,Guns的核心理念是提高开发人员开发效率,降低企业信息化系统的开发成本。
Apache License 2.0
3.87k 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)