良好的系泊。 我使用grails并且我需要使用RestBuilder,但是eclipse不能识别RestBuilder。我在Build.Config中有这些东西:
compile "org.springframework.boot:spring-boot-starter-logging"
compile "org.springframework.boot:spring-boot-autoconfigure"
compile "org.grails:grails-core"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.boot:spring-boot-starter-tomcat"
compile "org.grails:grails-dependencies"
compile "org.grails:grails-web-boot"
compile "org.grails.plugins:cache"
compile "org.grails.plugins:scaffolding"
compile "org.grails.plugins:hibernate4"
compile "org.hibernate:hibernate-ehcache"
compile "org.grails.plugins:ajax-tags:1.0.0.RC1"
compile 'org.grails.plugins:spring-security-core:3.1.1'
compile 'org.grails:grails-datastore-rest-client:5.0.0.RC2'
compile "org.grails.plugins:rest-client-builder:2.1.1"
compile "org.grails.plugins:rest:0.8"
compile "org.grails.plugins:grails-rest-renderers:0.5.1-RC1"
console "org.grails:grails-console"
profile "org.grails.profiles:web:3.1.7"
runtime "com.bertramlabs.plugins:asset-pipeline-grails:2.8.2"
runtime "com.h2database:h2"
runtime "mysql:mysql-connector-java:5.1.36"
runtime "org.apache.httpcomponents:httpclient:4.3.6"
testCompile "org.grails:grails-plugin-testing"
testCompile "org.grails.plugins:geb"
testRuntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1"
testRuntime "net.sourceforge.htmlunit:htmlunit:2.18"
我也试过这些进口:
import grails.plugins.rest.client.RestBuilder
import grails.plugins.rest.client.RestResponse
import grails.plugins.rest.client.RestBuilder
有人能帮帮我吗?我使用的是Grails 3.1.7。感谢。
答案 0 :(得分:0)
如果您正在谈论此插件:https://github.com/grails-plugins/grails-rest-client-builder
您可以阅读自述文件:
此插件的代码已移至a subproject of the Grails Data。请在那里提交任何拉动请求。
此外:
对于Grails 3.x,不再需要此插件,您应该 只是声明对核心Grails数据库的依赖:
compile 'org.grails:grails-datastore-rest-client:5.0.0.RC2'