Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
91 views

I noticed some discrepancy between how spring application properties are resolved using the environment variables. The spring configuration documentation on Binding From Environment Variables explains ...
Giridhar's user avatar
1 vote
1 answer
538 views

Using spring-boot v3.2.5 I've got configuration that deserializes to this class: @Getter // Intentionally Validated and not jakarata.validation.Valid because Valid does not trigger // validation for ...
Kevin's user avatar
  • 1,871
1 vote
0 answers
83 views

All of this was tested/tried on springboot 3.3.0. Consider the following configuration class file: import org.springframework.boot.context.properties.ConfigurationProperties; import java.util.Map; @...
C. Alexis's user avatar
1 vote
1 answer
1k views

I have a DataJpaTest with testcontainers for testing my database repositories, such as @DataJpaTest @AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE) @Testcontainers @...
Ilnyr Nasibullin's user avatar
0 votes
1 answer
347 views

Relevant similar (unanswered) question I am having troubles implementing a simple configuration matrix for multi-tenant multi-environment Spring Boot application. We have defined two sets of profiles: ...
usr-local-ΕΨΗΕΛΩΝ's user avatar
4 votes
3 answers
1k views

I am using spring-boot-configuration-processor to generate a spring-configuration-metadata.json file. When I use a class for my configuration, the description is taken from the javadoc above the field ...
mydeveloperplanet's user avatar
2 votes
1 answer
2k views

Spring Boot auto configuration was recently changed with version 2.7 and most of the settings deprecated with version 3.0 (you can find details here). Also, they introduced new annotation for auto ...
Huseyin Aydin's user avatar
1 vote
1 answer
1k views

I have a Spring Boot Config server that reads some properties from the local resources folder. The foldersetup is this: resources config application-production.properties application.properties ...
Jenna S's user avatar
  • 736
0 votes
1 answer
1k views

I have a restful API which has to be enabled or disabled based on the flag value which I would be fetching during application load. But I am unable enable/disable the API using @Conditional Annotation....
Usha's user avatar
  • 196
0 votes
2 answers
322 views

I would like to replace a configuration yml property using a condition based on environment variables: spring: datasource: username:${ENV} == 'PROD' ? ${USER_PROD} : ${USER_TEST} password: ${...
Mohamed MOUFAHIM's user avatar
2 votes
0 answers
2k views

I set kafka consumer deserializers in application.yml like this: application.yml kafka: consumer: key-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer ...
JerrryUL's user avatar
1 vote
2 answers
1k views

I have this class in a library project: @ConditionalOnMissingBean(name = "myServiceActivator") @Component(value = "myServiceActivator") public class MyServiceActivator { @...
Hasan Can Saral's user avatar
0 votes
1 answer
471 views

how we can configure spring boot application to store and retrieve java collections like lists and Date object in redis cache? Can anyone help me on this? Redis configuration in spring boot to store ...
Paritosh Singh Chauhan's user avatar
1 vote
1 answer
526 views

Can anyone help me to undersand: In Spring Data Couchbase: spring-data-couchbase : 4.3.0 Couchbase Version: 6.6.2 By using couchbasetemplate findById(Entity.class).one(id) is working fine, I am able ...
Ram's user avatar
  • 21
0 votes
2 answers
823 views

I have a strange problem reading configuration, none of solutions I've seen seem to work. Here is my code: @SpringBootApplication @EnableConfigurationProperties public class Application { ...
Samuel Waithaka's user avatar
2 votes
0 answers
1k views

I am trying to have specific beans enabled based on the "functionality" for the deployment, such as a rest interface, a message consumer, an indexer, an archiver, and an admin portal. In ...
user2076898's user avatar
0 votes
3 answers
2k views

I would like override SpringBoot external's some config into classpath file., when I run jar by command line. classpath -> application-config.yaml (Not application.yaml) server: port: 8080 ...
Zaw Than oo's user avatar
  • 9,945
0 votes
1 answer
1k views

I'm developing a Spring Boot application behind a Proxy server. Now I need to connect to an external API but I didn't figure out yet what to configure in order to enable the application to connect to ...
citylightssaltpierhinocerosant's user avatar
0 votes
1 answer
160 views

I am setting my database properties from an external file and am trying to do the same for the active profile, but am not having any luck. In app.properties if tried: spring.config.location= C:\\run\\...
reactFullStackDeveloper's user avatar
0 votes
2 answers
900 views

I'm unable to get lists to autocomplete when writing configuration files. Standard objects work as expected. I've configured both classes as properties: @SpringBootApplication @...
Chris's user avatar
  • 3,677
2 votes
1 answer
700 views

I have the following yaml configuration in a Spring Boot application: document-types: de_DE: REPORT: ["Test"] This is loaded using the following class and works perfectly fine when ...
Blink's user avatar
  • 1,604
5 votes
2 answers
2k views

Is there a recommended way to introduce restructurings/renamings into an externalized configuration while keeping backwards compatibility for consumers still relying on the old configuration structure?...
maff's user avatar
  • 773
0 votes
3 answers
733 views

I'm having a controller which gets json as string in request body as below @PostMapping("/addUser") public ResponseEntity<?> addUser (@RequestBody String userJson,HttpServletRequest ...
vishal sundararajan's user avatar
1 vote
1 answer
3k views

I have Scenario that whenever we use config server with config client we need to put in bootstrap.yaml. suppose my config server on port 9001 so i need to hardcore this value in properties file that ...
Pratik's user avatar
  • 21
3 votes
0 answers
3k views

I have a configuration similar to below spring: source: prop1: ['abc', 'def'] prop2: some-value destination: prop1: some-other-value I am trying to read the above configuration with ...
java_geek's user avatar
  • 18.1k