【发布时间】:2016-12-20 06:42:14
【问题描述】:
我已将 Apache Shiro 与 Spring Boot 与 Spring Data JPA 集成。 Spring Boot 项目位于this GitHub repo。
问题是当我运行并尝试验证应用程序时出现以下错误
roleAdmin.getId() 1: null
roleAdmin.getId() 2: 3
Current user is not authenticated.
2016-08-13 09:49:45.715 WARN 10528 --- [lication Thread] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: S0022
2016-08-13 09:49:45.716 ERROR 10528 --- [lication Thread] o.h.engine.jdbc.spi.SqlExceptionHelper : Column 'id' not found.
Authentication failed for token submission [org.apache.shiro.authc.UsernamePasswordToken - yunus, rememberMe=false]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException).
它完全无法通过身份验证,我设法创建了this repo 来详细说明我的问题。看看吧。
解决方案和批评是高度可接受的。
更新
如果需要任何额外信息来澄清我的问题,请询问
【问题讨论】:
标签: spring hibernate spring-boot spring-data-jpa