SpringBoot and SpringJDBC multiple datasources
问题 I am trying to use two datasources with my SpringBoot application and can't get the second datasource to autowire. I have tried many things but this is the closest I have come: My Yaml file: spring: first-datasource: url: MyURLString1 username: User password: Password driver-class-name: oracle.jdbc.OracleDriver second-datasource: url: MyURLString2 username: User password: Password driver-class-name: oracle.jdbc.OracleDriver My Application Class: @SpringBootApplication public class