如图,根据文档一步一步进行操作,运行起来后,登陆 admin 账户进入管理后台出现权限不足,这个是什么原因呢?
相关帖子
-
88250 •订阅者
@participants 已经修复,更新代码;社区版不支持主题切换。
-
shonve •作者
1、拉源码 git clone https://github.com/b3log/symphony.git
2、按需修改 src/main/resources/local.properties 中的数据库口令配置
jdbc.username=root
jdbc.password=
3、先执行了 mvn clear 清理
再执行 mvn install 编译打包,完成后在 target 目录下将生成 symphony.war4、 手动新建数据库
b3log_symphony
,字符集用utf8mb4
,排序规则utf8mb4_general_ci
5、 将 war 包部署到 Tomcat 的 webapps 目录下6、 浏览器访问 http://localhost:8080/symphony
7、登陆默认的管理员账号为 admin/admin
8、访问 http://localhost:8080/symphony/admin 提示 “因权限不足操作已被禁止 :(” - 其他回帖
-
shonve •作者
[ERROR]-[2018-12-19 09:12:01]-[org.b3log.symphony.processor.advice.PermissionCheck:113]: Match method failed
java.lang.NullPointerException
at org.b3log.symphony.processor.advice.PermissionCheck.doAdvice(PermissionCheck.java:111)
at org.b3log.symphony.processor.advice.PermissionCheck__jvst584_9e._d1doAdvice(PermissionCheck_jvst584_9e.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.b3log.latke.ioc.JavassistMethodHandler.invoke(JavassistMethodHandler.java:116)
at org.b3log.symphony.processor.advice.PermissionCheck_jvst584_9e.doAdvice(PermissionCheck__jvst584_9e.java)
at org.b3log.latke.servlet.handler.BeforeHandleHandler.handle(BeforeHandleHandler.java:55)
at org.b3log.latke.servlet.RequestContext.handle(RequestContext.java:451)
at org.b3log.latke.servlet.handler.RouteHandler.handle(RouteHandler.java:202)
at org.b3log.latke.servlet.RequestContext.handle(RequestContext.java:451)
at org.b3log.latke.servlet.handler.StaticResourceHandler.handle(StaticResourceHandler.java:118)
at org.b3log.latke.servlet.RequestContext.handle(RequestContext.java:451)
at org.b3log.latke.servlet.DispatcherServlet.handle(DispatcherServlet.java:87)
at org.b3log.latke.servlet.DispatcherServlet.service(DispatcherServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) -
shonve •作者
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.b3log.latke.servlet.filter.EncodingFilter.doFilter(EncodingFilter.java:64) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
-
shonve •作者
因为两千字符的限制,我做多条回帖展示完整异常提示信息。
这个是我点击 右上角那个头像,也就是管理进去,连接是:http://localhost:8080/symphony/admin 控制台提示的异常信息 - 查看全部回帖