Guest User

Untitled

a guest
Oct 24th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. @Configuration
  2. @PropertySource("classpath:app.properties")
  3. public class MyApplication {
  4. }
  5.  
  6. database.dataSource.url=jdbc:postgresql://localhost:5432/app
  7.  
  8. @Component
  9. class DatabaseConfiguration {
  10. @Value("${database.dataSource.url}")
  11. private String URL;
  12. }
Add Comment
Please, Sign In to add comment