In 1.5, if you set server.port=alpha
, you are shown the following failure analysis:
***************************
APPLICATION FAILED TO START
***************************
Description:
Binding to target org.springframework.boot.autoconfigure.web.ServerProperties@44c73c26 failed:
Property: server.port
Value: alpha
Reason: Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Integer' for property 'port'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.lang.Integer]
Action:
Update your application's configuration
The same configuration in 2.0 results in the following failure analysis:
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to bind properties under 'server.port' to java.lang.Integer:
Property: server.port
Value: alpha
Origin: "server.port" from property source "commandLineArgs"
Reason: For input string: "alpha"
Action:
Update your application's configuration