Advertisement
Guest User

Untitled

a guest
Sep 11th, 2013
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. @Configuration
  2. @PropertySource({"classpath:properties/filewithsomejsurl.properties"})
  3. public class AppConfigs {
  4.     @Bean
  5.     public static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer() {
  6.         PropertySourcesPlaceholderConfigurer p = new PropertySourcesPlaceholderConfigurer();
  7.         p.setIgnoreResourceNotFound(true);
  8.         p.setIgnoreUnresolvablePlaceholders(false);
  9.         p.setLocalOverride(false);
  10.         return p;
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement