reason: failed to load driver class com.mysql.cj.jdbc.driver in either of hikariconfig class loader or thread context classloader
The answer is so embarrassing. I appended the driver line of application.properties with a semicolon ... Obviously, it did't recognize that driver.