简体   繁体   English

grails 2.3.5 + redis-gorm插件+ spring安全核心插件

[英]grails 2.3.5 + redis-gorm plugin + spring security core plugin

I have problem in running a Grails 2.3.5 app with Redis as data store and Spring Security Plugin? 我在使用Redis作为数据存储和Spring Security插件运行Grails 2.3.5应用程序时遇到问题吗?
I get this "funny" message when submitting login form (brand new grails project with spring-security-core and redis-gorm plugins installed and User, Role, Requestmap classes generated with s2-quickstart command): 提交登录表单(安装了spring-security-core和redis-gorm插件以及使用s2-quickstart命令生成的User,Role,Requestmap类的全新grails项目)时,我收到此“有趣”消息:

Error 500: Internal Server Error 
URI 
/test-redis-security/j_spring_security_check 
Class 
java.lang.IllegalArgumentException 
Message 
No transactionManager bean configured 
Trace 
 Line | Method
->>  706 | withTransaction in org.grails.datastore.gorm.GormStaticApi
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|   1145 | runWorker       in java.util.concurrent.ThreadPoolExecutor
|    615 | run . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^    745 | run             in java.lang.Thread


    Any ideas?

Spring Security Core is set up by default to need transactions and the redis-gorm plugin doesn't support them. Spring Security Core默认设置为需要事务,而redis-gorm插件不支持它们。 You will need to override most the services provided by spring security code to not need transactions. 您将需要覆盖spring安全代码提供的大多数服务,以不需要事务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM