no suitable driver found for jdbc code example
Example 1: failed to determine a suitable driver class
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
Example 2: failed to determine a suitable driver class
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
Example 3: no suitable driver found for jdbc:mysql
Connection con = null;
try {
Class.forName("something.jdbc.driver.YourFubarDriver");
con = DriverManager.getConnection("jdbc:apache:commons:dbcp:test");
} catch (SQLException e) {
throw new RuntimeException(e);
}