Questions tagged [spring-boot-configuration]
100 questions
2
votes
1 answer
404 error when trying to call .jsp file in spring boot
I just started learning spring boot, and I do have a problem with my first application.
first, I will show the file structure, and then I will show my code and explain the problem and the solutions I tried.
File Structure
The problem and the…

Abdelrahman Nassar
- 197
- 3
- 10
2
votes
1 answer
Spring boot Cassandra configuration for enabling SSL
I am working on a spring boot application that is using Cassandra. I want to enable SSL in my application, but can't seem to find how to configure Cassandra to use SSL.
@Configuration
class CassandraApplicationConfiguration extends…

amrit sandhu
- 131
- 1
- 9
2
votes
0 answers
Autocompletion in YML files with Spring configuration doesn't work for map field
I'm facing some issues with autocompletion feature for yml files containing spring configuration. I found very similar question on stackoverflow but my reputation is too low to write a comment there. The solution doesn't work for me.
I enabled…

bogóś
- 51
- 7
2
votes
2 answers
Spring Boot Config at Git
I am following an blog :
https://github.com/jeroenbellen/blog-manage-and-reload-spring-properties
I am developing the services using spring boot and I want to change the config at run-time without application restart.
I have run the code mentioned…

Ankit Bansal
- 2,162
- 8
- 42
- 79
1
vote
1 answer
Why does @AutoConfiguration use proxyBeanMethods = false, @AutoConfigureBefore, @AutoConfigureAfter
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 configuration classes which is @AutoConfiguration. I…

Hüseyin Aydın
- 486
- 5
- 9
1
vote
1 answer
Why env variable is not overwriting the spring's configuration?
I have a spring-boot application with a ConfigurationProperties class. I am deploying the app with helm + kubernetes so passing the env variables to overwrite the config values. But somehow, some variables are not overwritten by this env variables…

Neron
- 1,500
- 7
- 30
- 52
1
vote
1 answer
spring boot config server production setup for error "You need to configure a uri for the git repository."
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
application.properties
In…

Jenna S
- 616
- 1
- 6
- 24
1
vote
1 answer
How to handle configuration When Spring Boot config server itself is down?
I'm new to the spring cloud config server. Consider a scenario where we have 10 spring boot microservice fetching configurations from the Spring Boot Cloud Config. I was wondering How the 10 spring boot microservices will work when the Spring Boot…

Sweta Sharma
- 2,404
- 4
- 21
- 36
1
vote
0 answers
How to set a deserializer delegate class in java file instead of yml file?
I set kafka consumer deserializers in application.yml like this:
application.yml
kafka:
consumer:
key-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
value-deserializer:…

JerrryUL
- 11
- 1
1
vote
2 answers
Is it possible to disable one URL in controller in spring-boot?
I need to disable methods inside one controller via configs.
For example, we have two methods inside controller:
@PostMapping("hello")
public String helloFunc(@RequestBody List numbers) {
// code
}
@PostMapping("bye")
public String…

Alexander Koritski
- 11
- 2
1
vote
1 answer
SpringBoot CouchbaseTemplate: findbyId is working But findByQuery not
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 to fetch
data
findByQuery(Entity.class).all()…

Ram
- 21
- 3
1
vote
1 answer
spring-configuration-metadata.json is not generated properly for multi-module project
I've created multi-module project:
(pom) root
(jar) libModule
(jar) appModule, has libModule in dependencies
appModule pom has dependency:
org.springframework.boot
…

E.Monogarov
- 460
- 8
- 17
1
vote
1 answer
Spring Boot Test doesn't load complex configuration properties
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 the SpringBootApplication is started (you can debug the…

Blink
- 1,408
- 13
- 21
1
vote
2 answers
Externalized Configuration in Spring boot
I have a external configuration file(out side jar). I try to run and expected
that value in external file will override value in internal file(application.properties in \resource\ - in jar file).
I read Documentation and try this:
java -jar…

Puskin
- 125
- 1
- 11
1
vote
1 answer
How to connect Config Client to Config server using Eureka server?
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 is http://localhost:9001:/
My question is, "it is…

Pratik
- 21
- 5