【发布时间】:2015-06-13 09:21:17
【问题描述】:
我在 Grails 应用程序中集成了 REST Spring Security 插件。登录工作正常,并返回正确的访问令牌。我可以在标头中的 X-Auth-Token 中使用此身份验证令牌调用其他操作。
我正在使用 Grails 2.4.4,以及带有 JDK 1.6 的 spring-security-rest 插件 1.4.0。
但是,注销不起作用并引发异常:
org.springframework.dao.DataAccessResourceFailureException: Could not
obtain current Hibernate Session; nested exception is
org.hibernate.HibernateException: No Session found for current
thread at
org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTemplate.getSession(GrailsHibernateTemplate.java:210)
我尝试升级到 1.4.1、1.5.0 但它们似乎依赖于 JDK 1.7 版本。
【问题讨论】:
标签: rest grails spring-security