我正在升级到Grails 2.3.9的Hibernate4:4.3.5.3插件.但是,我收到一个错误:
getGeneratedKeys() support is not enabled
Run Code Online (Sandbox Code Playgroud)
我无法找到有关如何启用此功能的任何配置详细信息.
我从Grails 2.4.3升级到2.4.4后,在启动Grails应用程序时出现错误.完整的错误可以在这里阅读:http://pastebin.com/UXQ34JKD
2014-10-31 16:26:32 ERROR [context.GrailsContextLoaderListener] Error initializing the application: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: java.util.List
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested …Run Code Online (Sandbox Code Playgroud) 我刚刚在刚开始从事的项目上创建了一个新的grails域类。我知道数据源设置正确,因为我们已经有很多域类可以很好地更新到数据库了。
我得到的错误:
Caused by BatchUpdateException: ORA-00942: table or view does not exist
Run Code Online (Sandbox Code Playgroud)
我尝试运行DBMUpdate,但是也没有创建表。
创建域类时我缺少什么?我需要更改变更日志中的某些内容吗?任何建议将是有帮助的!
我刚刚将我的grails应用程序从2.2.1升级到2.3.4,主要是成功并将spring spring安全插件从1.2.7.3升级到2.0-RC2.但是,我收到关于spring安全插件的错误(spring-security-core:2.0-RC2).
Annotation @grails.plugin.springsecurity.annotation.Secured is not allowed on element FIELD
Run Code Online (Sandbox Code Playgroud)
我认为它可能与仅限于能够注释方法而不是动作的新限制有关,但我注释的方法不是动作......所以...
这是带注释的控制器(尽管所有注释都会显示该消息):
@Secured(['IS_AUTHENTICATED_FULLY', 'ROLE_SHOW'])
def history = {
def instanceList = super.history(Perm.get(params.id))
[instanceList: impInstanceList]
}
Run Code Online (Sandbox Code Playgroud) 我现在有一个 Grails 网络应用程序,它使用带有唯一盐的 SHA-256 将用户的密码存储在我的数据库中。我最近将 web 应用程序升级到 Grails(2.3.4) 的 Spring Security 插件 (2.0RC2) 的最新版本。新插件默认使用 BCrypt。我的问题是,哪个更好,为什么他们会转向 BCrypt。我读过关于喜欢 BCrypt 的人和讨厌 BCrypt 的人的文章。我看到的一个直接专业人士是算法中内置了加盐,因此我不必单独存储盐。我还注意到您可以在 SHA-256 上设置迭代。根据我的阅读,很多人喜欢 BCrypt,因为您也可以为其设置迭代,但这与设置 SHA-256 的迭代有何不同?一个博客说 PBKDF2 是一个非常优越的选择,因为它“ s 已经过测试。但我也听到了关于 BCrypt 的同样事情......
grails ×5
grails-orm ×2
cryptography ×1
encryption ×1
grails-2.4 ×1
groovy ×1
hibernate ×1
oracle ×1
passwords ×1