No converter found capable of converting from type [java.lang.String] to type

Description:

Failed to bind properties under ‘server.servlet’ to org.springframework.boot.autoconfigure.web.ServerProperties$Servlet:

Reason: No converter found capable of converting from type [java.lang.String] to type [org.springframework.boot.autoconfigure.web.ServerProperties$Servlet]

Action:

Update your application’s configuration

解决办法

在dev的yml配置中

No converter found capable of converting from type [java.lang.String] to type

中间要有空格
直接通过idea右侧黄色直线提示找到

上一篇:如何实现 C/C++ 与 Python 的通信?


下一篇:web项目整合MongoDb出现No converter found capable of converting from org.bson.types.ObjectId to type Long异常