Skip to content

Reason in the analysis for a binding failure caused by a type conversion failure isn't as informative as it was in 1.5 #13357

@wilkinsona

Description

@wilkinsona

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions