172 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
33
views
Why does GCP App Engine Flex not read the active Spring profile application properties yaml file?
I have many application-<environment>.yaml files in my resources folder. I would like to only include the default and active profile files in my builds for deployment. I have this in my build....
0
votes
0
answers
96
views
How to set environment variables in gradle?
I have a Spring boot project that builds up with gradle. The project has several sub projects so I need to use the root gradle.build file to set the shared variables, like credentials, that are ...
-1
votes
1
answer
267
views
Disable ssl bundle locally (override config with null)
I have spring boot application with kafka where ssl configuration I wanna replace with ssl bundle and it's work. But locally I wanna start without ssl.
Problem is in replacing configs with null. How ...
0
votes
1
answer
31
views
With Spring Boot and PropertySourcesPlaceholderConfigurer, how to resolve nested Properties?
I have a Spring Boot application.
I am including multiple dependencies, which have different PropertySourcesPlaceholderConfigurer configured.
One PropertySourcesPlaceholderConfigurer is reading ...
0
votes
1
answer
47
views
How to add a second PropertySourcesPlaceholderConfigurer without losing Spring Boot's default property resolution?
I am creating a Spring Boot application. I want to use Spring Boot's default mechanism for Spring's property resolution.
I also need to embed an already existing custom Spring library. This library ...
0
votes
0
answers
213
views
@SpringBootTest: @ActiveProfiles doesn't work when put on @Nested inner class
I have a spring boot app.
project deps (plugins section):
id 'org.springframework.boot' version '2.6.1'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
And I want to test on of my ...
0
votes
1
answer
55
views
In Spring Framework tests, how to make PropertySourcesPlaceholderConfigurer search System Properties first?
I am not using Spring Boot. I have a plain Spring Framework application.
I have a Spring integration test written with SpringJUnitConfig.
I am using PropertySourcesPlaceholderConfigurer.
By default ...
0
votes
0
answers
54
views
Outsourcing .properties file based on context path in Spring Boot application deployed on Tomcat
I want to deploy multiple Spring Boot applications in one Tomcat server, each with different context paths, and I want to outsource the properties of each application. Specifically, I want the ...
0
votes
0
answers
47
views
Spring TestPropertySource params test use
I am implemented a bean class to store some parameters I would like to use in my software:
/**
* Parameters related to the H2 Database:
* <ul>
* <li>{@code uri}: The H2 address to the ...
2
votes
1
answer
885
views
@ConfigurationProperties in spring-boot:3.2.X does not working
I'm testing SpringBoot 3.2.0 in a new project (created from spring's scaffold) and when I configure a @ConfigurationProperties(prefix = "some.path.to.be.parsed") class (and @...
0
votes
0
answers
27
views
PropertySourcesPlaceholderConfigurer to load spring properties
I want to load spring properties using a specific format, not yaml nor properties.
I wrote a PropertySourcesPlaceholderConfigurer, which is working perfectly in the UT but...
When I start the Spring ...
1
vote
1
answer
1k
views
Spring Boot converter not working for configuration properties
I am attempting to provide a Converter to convert a r,g,b tuple in application.yml into a Color object. The property resolution fails with: "org.springframework.core.convert....
0
votes
1
answer
302
views
spring cloud configuration vs local properties
I have a spring boot application with application.yaml, also I gonna switch a Spring Cloud Config Server on.
The question is: which properties of these 2 above have a priority?
0
votes
1
answer
35
views
is there any other way to activate the profile and use the corrosponding application-{phase}.yml?
I have a spring application which has an application.yml and multiple application-{PHASE}.yml files.
By default the application uses application.yml file. Now i require that it uses the application-...
2
votes
0
answers
74
views
Spring Framework: How and where use the "name" of the @PropertySource?
In Spring Framework, for the @PropertySource, according with its API or javadoc it has the name attribute
Indicate the name of this property source.
If omitted, the factory() will generate a name ...