I am trying to use Spring\'s JdbcTemplate Class to connect to a simple MySql database based on this tutorial. In fact, I used their project setup:
pom.xml
Add the dependency below:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency>
Which will autoconfigure the Datasource