Failed to bind properties under ‘spring.redis.port‘ to int:
具体报错信息如下:Description:Failed to bind properties under 'spring.redis.port' to int:Property: spring.redis.portValue: 6379;Origin: class path resource [application.properties] - 19:20Reason: failed to co
·
具体报错信息如下:
Description:
Failed to bind properties under 'spring.redis.port' to int:
Property: spring.redis.port
Value: 6379;
Origin: class path resource [application.properties] - 19:20
Reason: failed to convert java.lang.String to int
Action:
Update your application's configuration
数据类型错误,不能把String转换为int
解决方法
找到properties文件,
把分号去掉就OK了
再次运行,启动正常。
更多推荐
已为社区贡献1条内容
所有评论(0)