ioc.js配置如下部分内容:
requestConfigBuilder: {
type: "org.apache.http.client.config.RequestConfig.Builder",
fields: {
connectTimeout: { java: "$conf.get('http.connectTimeout')" },
connectRequestTimeout: { java: "$conf.get('http.connectRequestTimeout')" },
socketTimeout: { java: "$conf.get('http.socketTimeout')" }
}
},
requestConfig: {
type: "org.apache.http.client.config.RequestConfig",
factory: "$requestConfigBuilder#build"
},
报错内容:
org.nutz.ioc.IocException: IocBean[requestConfig -> requestConfigBuilder] For object [requestConfigBuilder] - type:[]
Caused by: org.nutz.ioc.ObjectLoadException: Wrong type name: 'org.apache.http.client.config.RequestConfig.Builder'
Caused by: java.lang.ClassNotFoundException: org.apache.http.client.config.RequestConfig.Builder
该Builder是一个静态类,请问注入要怎样写呢?