313 Star 3.4K Fork 731

dromara / forest

 / 详情

增强字符串模板报错信息

已完成
拥有者
创建于  
2021-10-18 19:08

增强字符串模板报错信息

    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)
        ... ...

评论 (1)

公子骏 创建了任务
公子骏 关联仓库设置为dromara/forest
公子骏 修改了描述
公子骏 任务状态待办的 修改为进行中
公子骏 负责人设置为公子骏
公子骏 添加了
 
新需求
标签
公子骏 移除了
 
新需求
标签
公子骏 添加了
 
优化改进
标签
展开全部操作日志

已在 v1.5.11 版本实现

公子骏 任务状态进行中 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
1216742 dt flys 1594991700
Java
1
https://gitee.com/dromara/forest.git
git@gitee.com:dromara/forest.git
dromara
forest
forest

搜索帮助