Development environment: eclipse, JDK1.8, tomcat8.0, SpringMVC+Spring+Mybatis.
1. Able to achieve simple student file management, add, delete (can be deleted in batches), and modify students.
2. The file includes: name, gender, date of birth (date type), ethnicity, province and city (province and city can be linked), ID card (can achieve verification of 15 or 18 digits), and can upload photos.
3. Supports queries with various conditions (can fuzzy queries).
System homepage: The list displays the basic information of the students (name, gender, date of birth. There is an entry for modification and deletion operations. Click on the name to view the detailed information of the current student). There is a separate button to add students, and a batch delete button to delete students in batches. There is a query button to enter the query page to implement various queries, and the query results can support paging.
Note: Click the "Name" link. If you want to display the photo, you need to map the file storage path directory to tomcat. The method is as follows:
①. Find the tomcat configuration file (confserver.xml) and open it;
②. Add the following code between [host] and [/host]:
Among them: [path] is the mapped path, [docBase] is the path where your file is located;
③. Calling method: For example, there is a picture of test.jpg under [E:test].
Then the src in the img tag is changed to "/file/test.jpg".
After modification, restart the tomcat server.