Welcome to the ranch
When you say create do you mean connect?
This is an example of using multiple datasources in springboot:
You do need to instantiate our DataSource beans manually in a configuration class:
Notice that the bean is anotated with @ConfigurationProperties and a config prefix is provided. Inside the method we're using a dataSourceBuilder and SpringBoot will take care of the rest.
This is what happens behind the scene:
When calling the build method on the dataSource it will call it's private bind method:
This private method performs much of the autoconfiguration magic, binding the resolved configuration to the actual DataSource instance