Feign PathVariable annotation was empty on param 0

现阶段网上给的解决方案都是加name,可以对于一个在别处运行正常的工程来说,加上几十上百个name是很费时的,找到最终的原因.
I also meet exception, and spend some hours to solve it, finally the problem is made by refactor Method class privateGetParameters(), the solvation is compile use javac -parameter ..., if you use idea, add "-parameters" under Java Compiler-> Additonal command line parameters settings. if you use gradle, add
apply plugin: 'java'
compileJava {
options.compilerArgs << '-parameters'
}
`
note that clean your project before try again
答案是写在github上的,就不翻译了.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容