Debug not working on Spring Boot 2.7.3 application in STS (Spring Tool Suite)

Viewed 43

I have a REST API created on Spring Boot 2.7.3 that I'm testing through Postman.

When I run the application through STS, it starts fine and I get the correct responses on Postman.

But when I run it on Debug mode in STS, the application doesn't start fine and I get a "Could not send request" error message on Postman as if no application was up and running.

I noticed that in STS, when running in debug mode, the last message I see in the console is "HHH000400: Using dialect...." as you see in the screen shot below.

enter image description here

On the other hand, in another application that debug is working fine (earlier Spring Boot version) the last message I see is "Started Application in x seconds (JVM running for 12.133)" as you see in this other screen shot below.

enter image description here

So seems that the first application is not correctly starting in debug mode.

How to fix that?

1 Answers

Is this an STS issue or an application properties issue? Ensure you have your package logging level set correctly.

Examples:

application.yaml

logging:
  level:
    com.myself.app: debug

or application.properties

logging.level.com.myself.app=debug
Related