Skip to content
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

Any line that is immediately after a line that contains only a # is lost when reading application properties files #24158

Closed
gknight42 opened this issue Nov 14, 2020 · 0 comments
Assignees
Milestone

Comments

@gknight42
Copy link

@gknight42 gknight42 commented Nov 14, 2020

If an application.properties file has the following content:

#
property1.name=value1
property2.name=value2

The second line (property1.name=value1) is skipped over and not loaded.
It does not seem to matter where in the file this pattern occurs.

This started happening in spring boot 2.4.0.
Previously in spring boot 2.3.5 it worked properly.

@wilkinsona wilkinsona added this to the 2.4.1 milestone Nov 15, 2020
@mbhave mbhave self-assigned this Nov 18, 2020
@wilkinsona wilkinsona changed the title OriginTrackedPropertiesLoader drops next line if current line is just a single pound character Any line that is immediately after a line that contains only a # is lost when reading application properties files Nov 18, 2020
@mbhave mbhave closed this in e342d7d Nov 18, 2020
@philwebb philwebb pinned this issue Dec 4, 2020
@philwebb philwebb unpinned this issue Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants