JavaWeb-based on the JDBCTemplate framework to add, delete, modify and check (1)

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 .

  1. First create a Maven projectCreate Maven project
  2. Open the local warehouse of Settings-Builds Tools-Maven
    Insert picture description here

2. Import the configuration file of the utils package and the Druid connection pool

Insert picture description here

3. Import the connected coordinates into the pom.xml configuration file

Insert picture description here
That's it for the construction of the project, and you can start writing specific content below.

Guess you like

Origin blog.csdn.net/missingtheway/article/details/104789143