Created
September 24, 2014 13:47
-
-
Save jmkgreen/7dd07d28486b5620c741 to your computer and use it in GitHub Desktop.
Configuration that fails to override
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
@Configuration | |
@PropertySources({ | |
@PropertySource(value = {"classpath:myapp.properties", "classpath:hibernate.properties"}), | |
@PropertySource(value = {"file:${server.properties}"}, ignoreResourceNotFound = true) | |
}) | |
public class ResourceConfig { | |
@Value("${hibernate.show_sql}") | |
private String properties; | |
@Bean | |
public static PropertySourcesPlaceholderConfigurer properties() { | |
return new PropertySourcesPlaceholderConfigurer(); | |
} | |
public String getProperties() { | |
return properties; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment