Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Configuration
- @PropertySource("classpath:app.properties")
- public class MyApplication {
- }
- database.dataSource.url=jdbc:postgresql://localhost:5432/app
- @Component
- class DatabaseConfiguration {
- @Value("${database.dataSource.url}")
- private String URL;
- }
Add Comment
Please, Sign In to add comment