Questions tagged [spring-boot-configuration]
100 questions
0
votes
1 answer
Create Library that has a dependency on Spring Boot that has a it's own bootstrap.yml
I am working on a library that I want to have its own bootstrap.yaml to define some configurations. I already have a class that is used for user defined configurations in there bootstrap.yaml, but when I attempt to create another configuration class…

mrm9084
- 430
- 1
- 3
- 12
0
votes
0 answers
Can't retrieve the spring application context in a multimodule springboot project / EntityManagerFactory can not be found
I have a multimodule springboot project. Here is the architecture:
The class annotated with @SpringBootApplication is in the top module (webservice). When I run integration test from this top module using @SpringBootTestin my test classes, it works…

Julien Berthoud
- 721
- 8
- 24
0
votes
3 answers
Getting null value from @configuration
I'm creating pojo class and store the application.properties variable but I'm getting null values
NOTE: need to access env from my Abstract class
POJO class
package mynt.xyz.c4.pushnotif.config;
import…

Kimbriel Oraya
- 49
- 2
- 7
0
votes
0 answers
loading properties from s rest service call
In a spring boot application how can I load properties from a Rest service call in such a way that the properties can be overriden by command line arguments?
I am writing a spring boot application. The first thing it does is make a rest service call…

stephen newman
- 533
- 4
- 17
0
votes
1 answer
Spring config server read proterties from local machine if fetch data from git repositories failed
I am new for spring config server. I want to implement spring config server from my application where my config server fetch properties details from git repositories but in case of my git server are not able to respond, how can I read properties…

Piyush Chaudhari
- 962
- 3
- 19
- 41
0
votes
1 answer
SpringBoot excludeFilter not working with multiple configuration classes
I am developing a springboot app that has dependency on another springboot application. I want to include Most beans in the parent springboot app but one.
How can I exclude one springboot bean that the parent package has scanned without touching the…

Dong Hang
- 9
- 5
0
votes
1 answer
Spring boot webjars not generated, Http 406 returned
For some reason bootstrap webjars are not being copied into target, and for that reason they cannot be found.
pom.xml
org.springframework.boot
spring-boot-starter-parent
…

krzakov
- 3,871
- 11
- 37
- 52
0
votes
1 answer
Custom Auto Configuration in Spring Boot cannot find DataSource with ConditionalOnBean
I have a problem with Spring Boot version 2.0.1.RELEASE (in Spring Boot 2.0.0.RELEASE the below configuration worked nice).
Could somebody help me out please why this configuration is not working?
I have this configuration and this config did not…

Nagy Attila
- 1,119
- 1
- 10
- 14
0
votes
1 answer
Ways to update config properties for a Spring boot rest service
I have a spring boot rest service where configuration values are stored in git and fetched using a config server. Deployment is done in a docker swarm cluster where this service would run across multiple containers. So one thing I had to keep in…

Hary
- 1,127
- 4
- 24
- 51
0
votes
1 answer
Flyway afterMigrate.sql running twice
So, I have adde Flyway to my application to run integration tests with an embedded H2. I have also added a data script to db/migration/afterMigrate.sql. Everything worked fine with Spring Boot autoconfiguration up until the point that I created a…

Eduardo Bueno
- 134
- 1
- 12
0
votes
2 answers
How Read configuration properties based value pass?
I have spring boot application where the user sends parameter and based on this parameter, there are configuration should be get.
I created file name configuration type “Configration_Types.properies” , now how can I read the configuration based on…

user1122
- 43
- 1
- 1
- 7
0
votes
1 answer
liquibase initalization is executed in contradiction to the application.properties
Currently I have a SBA (Spring Boot App 1.5.10.RELEASE) which has two configuration property files like application-default.properties and application-oracle.properties. Furthermore those files are located in src/main/resources they end up in the…

khmarbaise
- 92,914
- 28
- 189
- 235
0
votes
1 answer
Springboot Actuator with Consul
In Consul, the health status configured in SpringBoot applications can be viewed.
Can anyone know let me know what other metrics (Other than health) can be seen in Consul through Actuator ?
Or can we make Consul to pull/invoke any services/URLs of…

Dhanushka N
- 170
- 2
- 12
0
votes
2 answers
Why are @Bean Generics creation methods on a superclass called later than ones on the child-class in Spring Boot?
I have a spring boot base abstract config class that creates a bean. If I then inherit from it, the bean will be created later than my controller (which needs to auto-wire it and thus fails). Note: it does get created, just after the controller. So…

Don Rhummy
- 24,730
- 42
- 175
- 330
0
votes
1 answer
How can I get the keys from application.properties within other properties files served by Spring Boot Config Server?
The Spring official tutorial for Centralized Configuration (https://spring.io/guides/gs/centralized-configuration/) says that:
It will also send all the values from any file named
application.properties or application.yml in the Git…

The_Cute_Hedgehog
- 1,280
- 13
- 22