DEV Community

Kudzai Tsapo
Kudzai Tsapo

Posted on

5 3

Spring boot error messages disabled!

So, I went through a lot of hell trying to figure out why the f-word my messages weren't showing. Guess what? Apparently, the are now disabled by default! 😑

Alt Text
After spending a few hours wondering why my code wasn't working, I finally stumbled upon the reason.

Apparently, the default value for server.error.include-message is "never".

So, I went into my code (application.properties) and had to do the following:



server.servlet.context-path=/api/v1
server.error.include-message=always
server.error.include-binding-errors=always


Enter fullscreen mode Exit fullscreen mode

...
What's that? It's non-standard, you say?
Well, get off my back! It works, doesn't it?

In case someone is having the same issue and like me they're wondering wtf is going on, this should be able to help.

Top comments (1)

Collapse
 
wissam75 profile image
wissam75 •

merci pour ton post tu m'a dÊbloquer dans mon problème :)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay