even If I remove all the configuration in the .yml...
# spring
f
even If I remove all the configuration in the .yml I still get the error
I downloaded the proj at home and by removing all the configuration I get the same error. If I comment out all mysql configs I get the error too.
m
I just downloaded your project and did a test on 1.2.10, 1.2.20 and 1.2.21... All of them give me the "Cannot determine embedded database driver class for database type NONE" if the MySQL portion of the application.yml is commented out.
One thing you probably don't need in your POM is the "spring-boot-starter-data-jpa" because the mongodb starter one will pull that anyway... Commenting it out actually made Spring properly map the mongodb database and the code now stops trying to connect to the server for me.
👍 1
But then again... Since you have 2 different datasources, you might need to configure them programatically because one of then needs to be set as @Primary and I don't know if you can do that via application.yml.