[JavaWeb] into Excel and verified

A target to be achieved

1. write interface

Table 2. Import table read, verify, matching the background (the name of this table is determined whether the matching can be fuzzy)

3. determination table exists, the read data therein, staging

4. Regular expression data checking (if there has been determined, whether the data conforms to the format)

5. import database

II. Import table of business logic

Referring https://blog.csdn.net/meng564764406/article/details/52426634 , business logic analysis

Class 1.student.java // student tables, attributes and getter & setter

2.common.java// constant connection to a database and the definition of a dynamic statement CRUD

3.readExcel.java// reading of Excel, assign student entity attribute List + return value?

4.saveDB.java// stored in the database from the List in after reading (to determine whether there has been)

5.Upload.java (extends HttpServlet)

// use Apache file upload component file upload process steps;

// Use ServletFileUpload parser upload data, analysis results returned is a List <FileItem> set, each corresponding to a Form FileItem entry form;

6. Operation DbUtil.java// data implementations (and the connection operation, a read value)

7. Interface

 

 

 

 

Guess you like

Origin www.cnblogs.com/SeasonBubble/p/11924013.html