我已经在我的application.yml中声明了Spring Security作为依赖项,并且在运行我的应用程序时默认登录表单按预期工作。我想对表单进行样式设计,以便我的应用程序无缝连接。自定义Spring Security 3.1.1在Grails 3中登录表单
在视图/ AUTH我有auth.gsp其中包含下面的代码:
<form method="POST" action="${resource(file: 'j_spring_security_check')}">
<table>
<tr>
<td>Username:</td><td><g:textField name="j_username"/></td>
</tr>
<tr>
<td>Password:</td><td><input name="j_password" type="password"/></td>
</tr>
<tr>
<td colspan="2"><g:submitButton name="login" value="Login"/></td>
</tr>
</table>
</form>
提交表单没有任何反应时,却出现预期这种形式。我假设这是因为{resource(file: 'j_spring_security_check')}
不是它应该进行的操作。我从here得到了这段代码,我相信这是用Grails 2编写的。任何想法正确的行动是什么?
有点offtopic,但你可以请发表评论http://stackoverflow.com/questions/38175154/which-plugin-module-of -spring-sec-oauth-should-used-in-grails-3-x? – injecteer