Debug Spring boot gradle application with mockserver
已回答
Hello,
I am making a Spring boot application with Gradle and I am run it with mock server, I am having a problem when running, the project builds successfully but it the application fails to start and it does not tell me where the error is, so I want to debug the project so I can find the issue but I can't configure the debug properly can anyone help me?
Normally I run my application with:
gradlew bootRun -D mockserver.enabled=true
I get the next error:
Reason: Failed to convert property value of type 'java.lang.String' to required type 'org.ex
ample.config.MindGateProperties' for property 'mindgate'; nested exception is java.lang.IllegalS
tateException: Cannot convert value of type 'java.lang.String' to required type 'org.example.con
fig.MindGateProperties' for property 'mindgate': no matching editors or conversion strategy found
Action:
Update your application's configuration
BUILD SUCCESSFUL
请先登录再写评论。
Does it fail from IntelliJ IDEA only or from the command line Gradle as well?
It only fails from the command line Gradle, it is the only way to Run it, IntelliJ IDEA does not show any error. so I can't see where the error is.
If the issue is not IntelliJ IDEA specific, you should try getting help via Gradle forums or http://stackoverflow.com/ site.