Questions tagged [spring-boot-configuration]

100 questions
0
votes
2 answers

Spring Boot: Automatic property expansion using Maven and specific Maven profiles is not working

I'm trying to use the 72.1.1 Automatic property expansion using Maven as specified in the documentation using different maven profiles, but I'm not able to make it work with specific profiles. I have the following pom.xml:
Alessandro C
  • 3,310
  • 9
  • 46
  • 82
0
votes
1 answer

Can I use @ConditionalOnExpression to check for an annotation's property value?

I want to have an annotation where it will pull in a different config class based on the value of property. It might work something like this: (All of this is pseudo code) The annotation: import org.springframework.context.annotation.Import; import…
Don Rhummy
  • 24,730
  • 42
  • 175
  • 330
0
votes
1 answer

Spring Boot multiple module test Autowiring

I have a multiple module project with structure: app/ build.gradle settings.gradle app-web/ src/main/java/example/ Application.java app-repository/ src/main/java/example/ CustomerRepository.java Customer.java …
Eduardo
  • 6,900
  • 17
  • 77
  • 121
0
votes
1 answer

Manage property files inside common micro service in Spring Boot

Currently I'm working in Spring boot micro services project. Consider I have 3 micro services named as A, B, C. Now My project have application.yml file separately for each micro service. Now I want to add one more microservice D, for manage all…
0
votes
1 answer

External properties Spring boot

I'm trying to get my spring boot project to use properties defined outside of project. I have tried the steps described in docs but I'm unable to get it to…
0
votes
1 answer

Shared Config(at git) between SPring Boot Services

I am developing spring boot services. So lets say I have 3 Services A, B, C with dev and prod profiles each. Now I am keeping the configuration for these services at GIT and using config server to fetch the configuration. So when I run A service in…
Ankit Bansal
  • 2,162
  • 8
  • 42
  • 79
0
votes
0 answers

Multiple External Configuration Sprintg boot

I am using Springboot and developing web services based on those. In my services, I am keeping the configuration at git instead of with project, so that I will be able to change the properties at run-time without restarting the application. I am…
Ankit Bansal
  • 2,162
  • 8
  • 42
  • 79
0
votes
1 answer

SpringBoot External Configuation

I am trying to keep External configuration in Spring Boot Project. So I have achieved this using a) Placing config at Git b) Creating one config-server. c) APplication get the config from config server. But can I achieve this WITHOUT using External…
Ankit Bansal
  • 2,162
  • 8
  • 42
  • 79
0
votes
0 answers

SpringBoot multiple configurations

I have following structure (maven) Parent: Common (module) Server (module) Batch (module) All (Batch, Server) sees Common Batch sees Server (and Common transitively: Batch -> Server -> Common) For IntegrationTests to loading an…
Artur
  • 217
  • 1
  • 5
  • 12
-1
votes
1 answer

Spring boot app does not see configuration file

I'm a newcamer in Spring Boot. And I feel like I have some configuration issue. I want to create file business-config.yml with data for business validation. But Spring does not see this file, wherever I put it. And there's no any exception or error.…
1 2 3 4 5 6
7