简体   繁体   English

使用Netbeans IDE将Spring Security集成到Grails中

[英]Integrating Spring Security into Grails Using Netbeans IDE

Am trying to integrate Spring security into a Grails Web application using NetBeans IDE . 我正在尝试使用NetBeans IDESpring security集成到Grails Web应用程序中。

Steps were: 步骤为:

  1. added mavenRepo "http://repo.spring.io/milestone" to repository repository添加了mavenRepo "http://repo.spring.io/milestone"
  2. compile ":spring-security-core:2.0-RC2" to plugins . compile ":spring-security-core:2.0-RC2"plugins

When I try grails s2-quickstart com.zot.auth User Role in cmd prompt I get below error. 当我在cmd提示符下尝试grails s2-quickstart com.zot.auth User Role ,出现以下错误。 Can anyone help. 谁能帮忙。 Also would like to know if we can create the spring security files directly in NetBeans like we create the pojos I mean without using a commandline. 还想知道是否可以像在不使用命令行的情况下创建pojos一样直接在NetBeans中创建spring安全文件。

| Error Error generating web.xml file (Use --stacktrace to see the full trace)

I faced same problem and resolved using following steps: 我遇到了同样的问题,并使用以下步骤解决了问题:

grails clean
grails refresh-dependencies

If still not work then remove target folder. 如果仍然无法使用,请删除target文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM