数据类型转换错误
来源:5-18 -Thymeleaf实战-前台编码-02

Nicholexx
2017-08-16
页面报错:
list.html:
UserController:
控制台报错:
2017-08-16 16:12:34.230 WARN 7336 --- [nio-8080-exec-5] .w.s.m.s.DefaultHandlerExceptionResolver : Failed to bind request element: org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Long'; nested exception is java.lang.NumberFormatException: For input string: "list"
这是什么原因啊?
写回答
3回答
-
慕虎3033596
2017-08-16
我也遇到了这个问题,我的解决方案是在cmd中用gradle bootRun命令启动项目,你这样试一下。
232017-09-04 -
老卫
2017-08-16
请获取最新的代码
162018-01-18 -
阿姆斯特朗回旋炮
2018-05-24
请问这个问题解决了么?我得到了一摸一样的error无法解决。。
012018-05-25
基于Spring Boot技术栈博客系统企业级前后端实战
毕设 Elasticsearch搜索+Thymeleaf模板+JPA+Security+BootStrap
1296 学习 · 738 问题
相似问题