Created
February 6, 2012 14:36
-
-
Save eugenp/1752454 to your computer and use it in GitHub Desktop.
Properties with Spring - Injecting Properties via Environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Autowired | |
private Environment env; | |
... | |
dataSource.setUrl(env.getProperty("jdbc.url")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment