I\'m trying to Autowire a database by
@Autowired private DataSource dataSource;
I have one datasource in my application.yml
application.yml
Please note that Spring Boot autoconfigured beans are not supported 100% yet, see https://youtrack.jetbrains.com/issue/IDEA-139669 for progress and possible workaorunds.