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
content of application.properties not processed after upgrading to Spring Boot 2.4.0 #24263
Comments
Are there comments in your |
Indeed, you may confirm that quickly by running this app against |
@bclozl Hi ! Thanks bro !! I close it because # was the problem ! |
@Whisper40 It's not on Maven Central as it's not a public release, but a SNAPSHOT version. You can add our snapshot repo to your build configuration. You can get the build snippet by generating a new Spring Boot project on https://start.spring.io/ and selecting 2.4.1-SNAPSHOT. |
@bclozel Thanks for the information :) Example :
|
Can you create a small, sample application that reproduces the issue? Thanks! |
Just downloaded a default project and added properties. I run it with the same Vm argument Other thing : With default project and mine : [Update] Working with 2.4.1-SNAPSHOT and # in properties with my project. |
Thanks for the follow-up. We can't unfortunately provide you support with the error in your IDE. Please follow-up on StackOverflow for that. |
Hi everyone. I have the same problem. I updated Spring Boot from 2.3.6.RELEASE to 2.4.0 and it seems that application.properties is not loading. I have the following in application.properties:
After running, I got the error: Using 2.3.6.RELEASE it works fine Thanks! |
This doesn't seem to be related to this issue. Please create a new issue with a sample project reproducing the problem, as the current description doesn't provide enough information. |
I'm upgrading my application to the new SpringBoot version.
I'm actually in 2.3.5 using properties files like that :
application-{profilename}.(properties/yaml)
I read those documentation :
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-Config-Data-Migration-Guide
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-Config-Data-Migration-Guide
My pom is this one :
I changed from 2.3.5.RELEASE to 2.4.0
I updated the project in eclipse
In my application.properties :
spring.config.use-legacy-processing=true
In my application-local.properties :
When i start the app, it lauch without taking the properties !
I tried to apply
spring.profiles.active=local
in myapplication.properties
but without success !In vm argument i have this :
-Dspring.profiles.active=local
With and without it just does not work..
I was not having any problem with 2.3.5.
spring.main.banner-mode=off
worksHow i see that properties are not loaded :
I have
spring.main.banner-mode=off
and the banner is displayed so something wrong.Datasource properties are not loaded too..
Refer to : https://stackoverflow.com/questions/65008209/upgrade-springboot-2-3-5-to-2-4-0
Thanks for help, i'm sure it can help a lot of people !
For information in spring tool suite 4 4.5.0:
spring.config.use-legacy-processing=true
is an unknow propertyThe text was updated successfully, but these errors were encountered: