Open rosenjcb opened 5 years ago
It is probably the best:
https://www.baeldung.com/spring-boot-failed-to-configure-data-source
If you are using Spring Data JPA then you should configure a data source for your relational DB, though, otherwise don't include it? Are you using some other classes in there but don't have a relational database?
If I use Spring Data JPA, I need to set up a spring.datasource.url or else I get the error:
I get around this right now by adding this annotation to my Application class:
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
But I was wondering if there's a better way to get around this issue. Thank you.