demand:
1, the system provides a file upload function, after the user upload a file, save the file in the specified directory on the server side, the file information stored in the database
* Each upload a file, database, there is a data record
2, the system provides a file download, all resource information data in the table, displayed on the page, allowing users to download
Create a database environment
create database day23
create table resources(
id int primary key auto_increment,
uuidname varchar(100) unique not null,
realname varchar(40) not null,
savepath varchar(100) not null,
uploadtime timestamp ,
description varchar(255)
);
Introducing jar package, c3p0-config.xml, JDBCUtils tools