spring-environment Questions
8
In a java-spring web-app I would like to be able to dynamically inject beans.
For example I have an interface with 2 different implementations:
In my app I'm using some properties file to config...
Classified asked 18/10, 2016 at 9:53
2
Solved
In spring JavaConfig, I can define property source and inject into Environment
@PropertySource("classpath:application.properties")
@Inject private Environment environment;
How do I do that if i...
Guest asked 6/12, 2012 at 7:8
2
Solved
I'm trying to use a constant to define a property and then resolving it with the @Value annotation.
I defined the constant in an interface:
public interface InternalConstant{
public static final...
Emasculate asked 2/6, 2015 at 12:12
1
© 2022 - 2024 — McMap. All rights reserved.