When our application starts, these SQL file will be automatically detected and ran. dialect = 5Dialect 4 – Database Initialization =jdbc:mysql://localhost:3306/dogrescue?useSSL=false application.properties #= connect to mysql =# Later we will autowire this for our JdbcTemplate use. We configure all our datasource information here in the application.properties. Spring Boot JdbcTemplate and Thymeleaf Example You may notice I am using Spring Tool Suite, which JT is not a fan of!īesides typical Spring Boot Starter dependencies, we include Thymeleaf and MySQL connector. The project uses a typical Maven structure. You can browse and download the code on Github as you follow this example. However, this example is not limited to MySQL and the database could be swapped out for another type with ease. For this example, we will be using a MySQL database. In this tutorial, we will be building a demo web application for a Dog Rescue organization that uses JdbcTemplate and Thymeleaf.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |