I am getting DataSource Not Supported when using DataSouceBuilder
M. Deinum answered it. I was missing commons-dbcp from my dependencies! I figured it was something easy like that.
To use the DataSourceBuilder you need to have commons-dbcp, or tomcat-jdbc or hikaricp on your classpath else it won't work. I you don't have one of those you will get the message as you get.
In my case, add spring-boot-starter-jdbc dependency works:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>