是' grails.plugins.rest.client.RestBuilder'线程安全?
可以通过resources.groovy注入grails服务吗?
由于
标记
答案 0 :(得分:1)
restBuilderContainer(RestBuilder) {
it.scope = 'request'
}
restBuilder(ScopedProxyFactoryBean) {
targetBeanName = 'restBuilderContainer'
proxyTargetClass = true
}
ScopedProxyFactoryBean成功了。