Grails Spring Security Login/Logout Controllers not generated

杀马特。学长 韩版系。学妹 提交于 2019-12-29 06:44:26

问题


I am trying to learn Grails along with the Spring Security plugin. I am using Grails 2.3.0 with springsecurity-RC2 plugin and following the guide on the Grails website.

The issue I am running into is that the generated LoginController.groovy and LogoutController.groovy files from the s2-quickstart script are not being generated in the grails-app/controller, instead they are in target/work/springsecurity/grails-app/controller.

This issue does not seem to occur in grails 2.1.5 but does in 2.2.4. Is there anyway for me to fix these issues or do I not need them?


回答1:


This is by design. The files aren't generated anymore, they're included in the plugin itself. If you need to modify them, copy the controller and/or GSPs to your project in the same location under grails-app and make your changes there. Apps can always override plugin classes using this approach since Grails compiles plugins first, then the app.



来源:https://stackoverflow.com/questions/19397159/grails-spring-security-login-logout-controllers-not-generated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!