[英]Customizing new Grails Spring Security Core Plugin login page
I installed Grails Spring Security Core Plugin and it works great, but I can't find the gsp file for the login page. 我安装了Grails Spring安全核心插件,它工作得很好,但我找不到登录页面的gsp文件。 I want to change the login page to match my web theme.
我想更改登录页面以匹配我的网页主题。 Anyone knows how to find the file ?
有谁知道如何找到该文件? I tried generate-views and also generate-all followed by User, UserRole, and Role domain classes but I didn't see the actual files.
我尝试了generate-views和generate-all,然后是User,UserRole和Role域类,但我没有看到实际的文件。 Also I can't find the login and logout controllers for the spring security core plugin in my project directories.
另外,我在项目目录中找不到spring security core插件的登录和注销控制器。 Any idea what's going on ?
知道发生了什么事吗?
They're in the plugin itself, so it depends on where your plugins get installed. 它们位于插件本身,因此它取决于插件的安装位置。 In 2.3 they'll be under
target/work/plugins
, and in earlier versions they'll be in the .grails
folder which is in your home directory, so it'll be something like $HOME/.grails/2.xx/projects/<projectname>/plugins
在2.3中,它们将位于
target/work/plugins
之下,在早期版本中,它们将位于主目录中的.grails
文件夹中,因此它将类似于$HOME/.grails/2.xx/projects/<projectname>/plugins
I like to keep things simple by deleting the grails.project.class.dir
, grails.project.test.class.dir
, and grails.project.test.reports.dir
settings from BuildConfig.groovy
and adding just 我喜欢通过从
BuildConfig.groovy
删除grails.project.class.dir
, grails.project.test.class.dir
和grails.project.test.reports.dir
设置来简单地添加内容
grails.project.work.dir = 'target'
so everything is in one place. 所以一切都在一个地方。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.