In the last lesson, we learned the basic operations of Dao mode, but the frequent switching of the database based on BaseDao's addition, deletion and modification check caused a lot of time loss, and the management of the Jar package is also very chaotic and prone to problems. Therefore, in this lesson we have adopted a new approach: based on the JDBCTemplate framework to add, delete, modify and check
1. Introduction of Maven
In the previous code writing process, the Jar package is always easy to cause some confusion. In order to avoid these confusions, we introduced a Java project based on Maven .
- First create a Maven project
- Open the local warehouse of Settings-Builds Tools-Maven
2. Import the configuration file of the utils package and the Druid connection pool
3. Import the connected coordinates into the pom.xml configuration file
That's it for the construction of the project, and you can start writing specific content below.