Top "Spring-profiles" questions

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

Spring "spring.profiles.include" overrides

My intention is to have two profiles in a spring boot application - development and production one. Development profile is …

spring spring-boot spring-profiles
Spring Boot ignores beans from Java config class using Spring Profile

When I run my application on Eclipse with a classical context loading, no worries, the beans defines on the config …

java spring maven spring-boot spring-profiles
How do you properly set different Spring profiles in bootstrap file (for Spring Boot to target different Cloud Config Servers)?

We have different config servers per environment. Each spring boot application should target its corresponding config server. I have tried …

java spring-boot spring-cloud-config spring-profiles
Spring Boot Configuration skip registration on multiple @Profile

I've a Spring Boot application with different Profile setup : dev, prod, qc, console etc. The two configuration classes are setup …

java spring spring-boot spring-profiles
How to add an active spring profile from an environment variable?

Until now, I'm setting the following environment variable in my ~/.bash_profile : export SPRING_PROFILES_ACTIVE=local This set my …

spring spring-boot spring-profiles
Maven and spring-boot: how to specify profile(s) on spring-boot:repackage

With spring-boot, I know that I can have profiles and use different configuration files depending on the active profiles. For …

java spring maven spring-boot spring-profiles
How to inject active spring profile into logback

I'm using a spring boot project. Environment: ch.qos.logback:logback-core:jar:1.1.5 ch.qos.logback:logback-classic:jar:1.1.5 org.springframework.boot:…

java spring spring-boot logback spring-profiles
How to set active profile programmatically for any environment?

I want to set active profile host dependent for any envrionment and cannot find an environment independent hook. Following factory …

spring spring-mvc spring-boot spring-profiles spring-boot-test