Skip to content

Spring boot should warn that 'web-application-type: none' should be set before freezing #48231

@Tcharl

Description

@Tcharl

Hi Spring community,

And before saying anything, thank you so much for that wonderful adventure! I'm spring afficionado since 2008 and will never be able to bring you back enough value than the one you bring to the community.

Spring boot version: 3.5.5 with (for frontend facing libraries)

  • spring actuator
  • spring-data-jpa

Context:
I'm working on a good old 'fat batch' app which transfers data from a database (with a transformation in between source code
Sometimes, database migration can take more than 30 minutes.

When using bare spring configuration a an @Order(1) bean, starter becomes stuck after 3 minutes or so without giving any information to the user (neither telling something is stuck), without any notification (I guess it expects an endpoint to be exposed) unless spring.main.web-application-type: none is defined.

Took me approximately 9 month spare time to discover the fix, thus I'm just asking something for the next comers: may you please add a log message to tell someone in the same situation?

  • 'thread will starve because no healthiness probe responding (pring.main.web-application-type: none may be set)'
  • Not blocking the thread?

Thank you for your understanding and to take this feedback into account.
Best regards, and never hesitate to reach me if I can help somehow

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions