Failed to bind properties under server.address to java.net.InetAddress

报错

2020-06-14 22:14:46.251 ERROR 20640 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under 'server.address' to java.net.InetAddress:

    Property: server.address
    Value: mail
    Origin: class path resource [application.yml]:12:12
    Reason: failed to convert java.lang.String to java.net.InetAddress

Action:

Update your application's configuration

问题

第 12 行强转错误java.lang.String to java.net.InetAddress

server.address的值应该是网络地址:例如:127.0.0.1

你可能感兴趣的:(Java,java,mysql,bug,jvm,exception)