grails-spring-security

Grails 3.2.8 dependency injection in domain classes

◇◆丶佛笑我妖孽 提交于 2019-12-11 07:12:16
问题 Grails 3.2.8 doesn't seem to have dependency injection working for domain classes by default. When I create a new app and add Spring Security Core 3.1.1 with the following println: protected void encodePassword() { println "springSecurityService == null? ${(springSecurityService==null).toString()}" password = springSecurityService?.passwordEncoder ? springSecurityService.encodePassword(password) : password } I get: springSecurityService == null? true If I try creating and injecting a service

gradle war vs gradle assemble (Grails 3.2.6 and Sec plugin 3.1.2)

放肆的年华 提交于 2019-12-02 11:17:18
问题 I am having really hard time figuring this one out. I have an app which works fine in intellij and as a standalone war (created with gradlew assemble ). But when I am trying to deploy this war (created with gradlew assemble but with tomcat starter set as provided in build.gradle file) in the tomcat 8.5, I am getting this exception. But if I generate a war using gradlew war then I do not see this exception and tomcat is deployed alright. But in that case my app is giving all kind of crap