How do you autowire/inject your datasource in Spring-boot?
问题 I have been working with Spring boot for a bit now, and the datasource is always configured in your application.properties in every example I have seen, kind of like this: # DataSource configuration spring.datasource.driver-class-name=org.postgresql.Driver spring.datasource.url=jdbc:postgresql://localhost:5432/abcdef spring.datasource.username=****** spring.datasource.password=****** However, lately I have been trying to integrate Spring Social, and the examples I have seen configure it in