Top "Spring-profiles" questions

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

How to set Spring profile from system variable?

I have a Spring project which uses another project. Each project has its own spring profile initialize from java code …

java spring spring-profiles
How do you get current active/default Environment profile programmatically in Spring?

I need to code different logic based on different current Environment profile. How can you get the current active and …

java spring spring-profiles
Setting Spring Profile variable

I have two Spring profiles: dev and test. I want to set the active profile in the server environment, I …

spring spring-boot spring-profiles
How to set spring active profiles with maven profiles

I have an application with maven as a build tool. I am using maven profiles to set up different properties …

java spring maven spring-profiles
SpringBoot: Unable to find a single main class from the following candidates

I've generated a Spring Boot web application using Spring Initializer, embedded Tomcat, Thymeleaf template engine.Technologies used: Spring Boot 1.4.2.RELEASE, …

spring maven spring-mvc spring-boot spring-profiles
Spring Profiles on method level?

I'd like to introduce some methods that are only executed during development. I thought I might use Spring @Profile annotation …

java spring spring-profiles
Including bean definition when a profile is NOT active

In my application I use several profiles to make certain beans eligible for autowiring. What I'm missing is the possibility …

java spring spring-profiles negation
How to disable flyway in a certain spring profile?

Now I have a spring-boot app which uses MsSQL server. And we use flyway for migrations. I want to add …

java spring spring-boot flyway spring-profiles
What is the order of precedence when there are multiple Spring's environment profiles as set by spring.profiles.active

I am just wondering what the order of precedence is when multiple Spring active profiles have been specified. Say I …

spring spring-profiles
Spring: How to do AND in Profiles?

Spring Profile annotation allows you to select profiles. However if you read documentation it only allows you to select more …

java spring spring-profiles