datasource java spring spring-boot spring-mvc

Spring Boot Configure and Use Two DataSources

How can I configure and use two data sources?

For example here is what I have for the first data source:

#first db
spring.datasource.url = [url]
spring.datasource.username = [username]
spring.datasource.password = [password]
spring.datasource.driverClassName = oracle.jdbc.OracleDriver
#second db ...

Application class

public class SampleApplication
public static void main(String[] args) {, args);

How do I modify to add another data source? How do I autowire it to be used by a different repository?