-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Banner placeholder and defaults do not work during development #44137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I get that the manifest is not available and no sensible value can be infer without messing with the current implementation, but the default values should cover this, and they fail to render. |
The problem is that the properties that are "missing" actually have empty string values. Placeholder resolution then uses these empty strings rather than the fallback specified in the placeholder. We could change
This has fixed the output with defaults but has changed the output without defaults. That change could be unwanted for some so we'll have to consider our options here. |
We discussed this today and we'd like to change things so that the default value in the placeholder is used. If there's no default value in the placeholder, we'd like an empty string to appear in the output rather than the placeholder. |
I think this makes sense, if only for the sake of consistency. It's confusing to see that |
To clarify, the behaviour I described will only apply to well-known properties where we were forcing |
I've always wanted to have a fancy banner that works in production AND during development.
But if you start with a fresh springboot project and run it from your ide, or with
mvn spring-boot:run
, or during tests, values are not interpreted AND the defaults don't show up either.I raised a similar isue in #34713 but it's not working in development runs.
To test this, I put this in
src/main/resources/banner.txt
:It renders OK if I start the jar with
java -jar target/demo-0.0.1-SNAPSHOT.jar
:But during aforementioned tests, I get this:
The text was updated successfully, but these errors were encountered: