代码拉取完成,页面将自动刷新
增强字符串模板报错信息
public interface TestClient {
@Get(url = "/data/", contentType = "application/{json}")
String contentTypeVar();
}
报错日志:
com.dtflys.forest.exceptions.ForestVariableUndefinedException: [Forest] Cannot resolve variable 'json'
[From Template]
method: com.dtflys.test.exception.TestExceptions$TestClient.contentTypeVar()
annotation: com.dtflys.forest.annotation.@Get
attribute: contentType = "application/{json}"
at com.dtflys.forest.mapping.MappingTemplate.render(MappingTemplate.java:496)
at com.dtflys.forest.reflection.ForestMethod.makeRequest(ForestMethod.java:834)
at com.dtflys.forest.reflection.ForestMethod.invoke(ForestMethod.java:1351)
at com.dtflys.forest.proxy.InterfaceProxyHandler.invoke(InterfaceProxyHandler.java:223)
at com.sun.proxy.$Proxy25.contentTypeVar(Unknown Source)
... ...
登录 后才可以发表评论