spring-profiles Questions
4
Looking for best approach in configuring multiple Profile specific property files in Springboot application. Below is an example:
-resources
-- application.properties
&nbs...
Proteiform asked 18/11, 2014 at 20:51
2
With spring-boot, I know that I can have profiles and use different configuration files depending on the active profiles.
For instance the command:
"mvn spring-boot:run -Drun.profiles=default,pro...
Aqaba asked 20/3, 2016 at 18:45
2
Solved
Is it possible to have a profile in spring boot and also another profile that inherits most of the parent values and beans?
For example I have two profiles
staging and staging-task.
I want stagin...
Beadruby asked 3/4, 2017 at 18:23
3
Solved
Here is my application.yml file:
spring:
freemarker:
template-loader-path: classpath:/templates
datasource:
url: jdbc:postgresql://localhost:5432/myapp
username: postgres
password: pa...
Delicatessen asked 31/12, 2018 at 12:57
1
Solved
I use junit5 with spring-starter-test, in order to run spring test I need to use @ExtendWith instead of @RunWith. However @IfProfileValue work with @RunWith(SpringRunner.class) but not with @Extend...
Cruiser asked 11/12, 2018 at 5:44
1
Solved
According to https://mcmap.net/q/1039785/-how-can-i-use-ifprofilevalue-to-test-if-a-profile-is-active
we should not use @Profile to let a spring profile decide whether all tests in a test class sh...
Crawl asked 15/11, 2018 at 6:17
7
Solved
Spring Profile annotation allows you to select profiles. However if you read documentation it only allows you to select more than one profile with OR operation. If you specify @Profile("A", "B") th...
Rapeseed asked 21/11, 2014 at 6:2
2
Solved
I have an interface define as below:
public interface MyService {
}
And two classes implementing it:
@Service
@Profile("dev")
public class DevImplementation implements MyService {
}
and
@Se...
Salgado asked 27/1, 2017 at 10:24
1
Solved
I would create some compilation profiles like these:
profile name: dev
profile name: test
profile name: production
In src/main/resources I have 3 folders:
dev/file.properties
test/file.prope...
Getter asked 5/2, 2018 at 9:13
3
Solved
I have a Spring Boot Web application exposing rest services.
I'm asking myself how to correctly manage profiles on Filters.
Actually, my app has 2 profiles: dev and prod (you guess what it stands ...
Plumbiferous asked 12/8, 2016 at 14:26
1
I want to be able to read the active profiles from a property file so that different environments (dev,prod etc) can be configured with different profiles in a Spring MVC based web application. I k...
Obit asked 12/8, 2015 at 22:58
3
Solved
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:spring-boot-starter-logging:jar:1.3.3.RELEASE...
Suite asked 17/9, 2016 at 11:42
5
I am working on a Spring application and I am realizing that I have an issue with the way I manage my properties. I use Spring environment profiles in order to load my properties and I've recently ...
Culex asked 12/5, 2014 at 20:44
1
Solved
I have a Spring application that can use two different persistence API:
Spring Data JPA
Spring Data Neo4j
When using Spring Data JPA, I need to declare the "OpenEntityManagerInViewFilter" in "w...
Kliman asked 12/6, 2015 at 10:33
1
Solved
I have a Spring boot Web application. The application is configured via java classes using the @Configurable annotation. I have introduced two profiles: 'install', 'normal'.
If the install profile ...
Scow asked 16/2, 2015 at 12:9
1
Solved
I want to set a profile name to a whole package and I don't know how. If where is no easy way then I have to mark every class in the package and sub packages with @Profile annotation.
<context...
Netsuke asked 28/11, 2014 at 9:59
1
Solved
Background: So, I've got several beans that interface external systems. For development, it's convenient to mock the external systems and replace the interfacing beans with some implementations tha...
Custodial asked 1/8, 2014 at 9:2
1
Solved
I would like to package my spring boot application as war for a specific profile. That can be done with setting spring.profiles.active=profile name in application.properties file.
Is it possible t...
Elohist asked 16/7, 2014 at 14:12
2
Solved
When I run my application on Eclipse with a classical context loading, no worries, the beans defines on the config class corresponding with the Spring Profile chosen are correctly instanciated.
pu...
Usherette asked 30/5, 2014 at 17:13
1
Solved
I have a spring mvc controller and I want to enable it only in some profiles (for example development and test).
I know I can use the profile attribute of the beans element in xml configuration t...
Dahlgren asked 12/6, 2013 at 13:58
1
In my application I use several profiles to make certain beans eligible for autowiring. What I'm missing is the possibility to make a bean eligible for autowiring when a certain profile is NOT acti...
Rudolph asked 26/11, 2012 at 23:51
© 2022 - 2024 — McMap. All rights reserved.