简体   繁体   English

Grails 安装 REST 客户端插件

[英]Grails installing REST client plugin

I'm trying to start fresh a new project with rest calls.我正在尝试通过休息调用重新开始一个新项目。 I downloaded the 'http-builder-helper' https://github.com/bobbywarner/grails-http-builder-helper , then I tried the command 'grails install' and I get this error :我下载了 'http-builder-helper' https://github.com/bobbywarner/grails-http-builder-helper ,然后我尝试了命令 'grails install' ,但出现此错误:

Task 'install' is ambiguous in root project 'http-builder-helper'

| | Grails Version: 3.0.9 | Grails 版本:3.0.9 | JVM Version: 1.7.0_79 JVM 版本:1.7.0_79

Add this to your dependencies:将此添加到您的依赖项中:

compile "org.grails.plugins:grails-http-builder-helper:1.0.0"

If it does not work, add maven repo for bintray as below:如果它不起作用,请为 bintray 添加 maven repo,如下所示:

repositories { maven { url "http://dl.bintray.com/bobbywarner/grails-plugins" } }

You can look into this issue for more information.您可以查看此问题以获取更多信息。

If your options are open, you can try rest client based on spring rest template.如果您的选择是开放的,您可以尝试基于 spring 休息模板的休息客户端 To add this into your application, use要将其添加到您的应用程序中,请使用

Compile "org.grails:grails-datastore-rest-client:4.0.7.RELEASE"

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

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