Questions tagged [spring-profiles]

Spring Profiles provide a way to segregate parts of an application configuration and make it only available in certain environments.

Spring Profiles provide a way to segregate parts of an application configuration and make it only available in certain environments.

http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-profiles.html

349 questions
0
votes
1 answer

Can PropertiesPlaceholderConfigurer subclass detect active Spring profile?

We have a specific format for our config files, where instead of having multiple files - ie, dev.properties, uat.properties, prod.properties - we instead have all the values in one file, but separated by prefixes for each environment. For…
trafalmadorian
  • 1,660
  • 1
  • 15
  • 21
-1
votes
3 answers

Spring boot : bean creation profile specific

I am working on a spring boot application.i am using spring boot version: 2.2.4-RELEASE I am trying to create a bean specific for a profile.but the bean is not creating as expected. Below is my configuration file: @Configuration @Slf4j public class…
JingJong
  • 207
  • 1
  • 3
  • 14
-2
votes
1 answer

Package war with specific profile in Spring Boot

I want to package a war for a specific profile. Is this possible? My pom.xml is configured properly to package war files and I'm packaging the app my with mvn clean package But, I don't know how I can provide the Spring profile in this…
Héctor
  • 24,444
  • 35
  • 132
  • 243
-3
votes
2 answers

Spring boot application main method is executing twice -> port already in use

It is my first time when I configure a spring boot application from scratch and for 2 days I was having a nightmare with this issue. When I am trying to start the application it looks like it's trying to start twice and every time I got an error…
1 2 3
23
24