Skip to content
Advertisement

Spring Boot application suddenly stops after outputing logo and version on Eclipse

When I execute Run As -> Java application my Spring Boot application class on Eclipse, I get Spring Boot logo and version in logs but it halts and stops after few seconds:

JavaScript

There are no errors in console.

Tried but didn’t help:

  • Project -> Clean, project refresh on Eclipse
  • gradle clean, build, eclipse from command line
  • Deleted and imported project from git again
  • Restart Eclipse

Tried solutions from related SO threads:

Also:

  • If I run tests from Eclipse, they pass successfully.
  • Other Spring Boot apps run well on Eclipse.
  • When I try to run application from command line with gradle bootRun, it runs smoothly.

Why does it happen? How to solve it?

Advertisement

Answer

Deleted logback.xml from src/main/resources and logback-test.xml from src/test/resources and it worked.

Advertisement