Caused by: java.lang.IllegalStateException: Cannot find template location:
缺少了一个目录template
解决:在src/main/resource建目录
Caused by: java.lang.NumberFormatException: For input string: "7002@17002"
集群环境Redis使用的是4.0.1的版本
报错之前使用的jedis版本为2.7.2
之后版本替换为2.9.0完美解决问题
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.9.0</version>
</dependency>
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Nov 22 20:46:15 CST 2017
There was an unexpected error (type=Not Found, status=404).
No message available
原因:
1.目录结构
application.java是父目录
2.@controller
我加了@controller("/userController"),结果报了这错误,改回来没报了
注意:方法的返回值最好不要是void,否则会报错,你可以封装一个返回类型的类
缺少了一个目录template
解决:在src/main/resource建目录
Caused by: java.lang.NumberFormatException: For input string: "7002@17002"
集群环境Redis使用的是4.0.1的版本
报错之前使用的jedis版本为2.7.2
之后版本替换为2.9.0完美解决问题
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.9.0</version>
</dependency>
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Nov 22 20:46:15 CST 2017
There was an unexpected error (type=Not Found, status=404).
No message available
原因:
1.目录结构
application.java是父目录
2.@controller
我加了@controller("/userController"),结果报了这错误,改回来没报了
注意:方法的返回值最好不要是void,否则会报错,你可以封装一个返回类型的类