Table of contents
0 School Information Management System Experience Course
0.0 Project remote open method
1. Management system design requirements analysis
1.2.1 Student Information Entry
1.2.2 Student Information Query
1.2.4 Add student information verification
2.4.1. Verify that the user exists
2.4.2 Validation of Password Conditions
2.4.3 Checking of Name conditions
3.1 Introduction to Java IO streams
5.1 Introduction to Network Programming
6.1 Introduction to Multithreaded Programming
7 Summary of Curriculum Design
0 student information management system experience course
0.0Student management off-site open method
- Create a database named mysims
- Import MySQL data
- Import the jar package and add it as a library
-
In the ModelImplements file, change the configuration of the database to what you set before
-
Run LoginRegister to enter the initial page
-
Login account, the test is successful
The password is: 111111
- Management System Design Requirements Analysis
1.1 Requirements Introduction
The system is used to manage students' personal information, including student number, name, gender, age, major, class, etc.
1.2 Functional requirements
1.2.1 Student Information Entry
Support the administrator to enter the personal information of the students.
Support editing and deleting of student information.
Support the query function of student information, which can be filtered according to student number, name, class and other conditions.
1.2.2 Student Information Query
Provide a query interface, allowing administrators to query student information based on student ID or name.
Support fuzzy query, you can enter keywords to match.
1.2.3 Rights Management
Define the administrator rights of different roles to ensure that only authorized administrators can enter, query and delete student information.
1.2.4 Add student information verification
The system needs to provide an interface for adding student information, allowing the administrator to enter the student's personal information and save it in the database. The interface includes validation mechanisms to ensure that the information entered is correct.
2. Function introduction
2.1 Administrator module
2.1.1 Login interface
After logging in, the administrator can view the following information:
2.1.2 Increase
Add student information in administrator mode
add success:
2.1.3 delete
2.1.4 Check
The query is realized by rewriting the sql statement and the three methods of removeUpdate(), changedUpdate(), and insertUpdate() of the input box— real-time fuzzy query , and the five entries in the first five columns in the table belong to the query range
Sql statement: "select * from literature where ( student number like ? or name like ? or college like ? or major like ? or grade like ?);"
The search operation can be performed through the following information
Search by name shows success
2.1.5 change
x
Successfully modified
2.2 Student Modules
2.2.1 Login interface
2.3 Teacher Module
2.3.2 Login interface
2.4 Verify operation
2.4.1. Verify whether the user exists
- Although the login interface does not prompt the user name format, there are detailed prompts in the subsequent registration interface;
- Access the database through jdbc, verify user and password information,
- The verification prompt is realized through JTextField. Set the JTextField to be transparent and non-editable, and then set the content of the text box according to the verification condition to realize the error prompt
2.4.2 Validation of Password Conditions
Regular expression: ^[a-zA-Z0-9][0-9a-zA-Z._]{5,7}$
Password needs to be a 5~7-digit string consisting of uppercase and lowercase letters and decimal underscores starting with uppercase and lowercase letters or numbers.
2.4.3 Checking of Name conditions
Regular Expressions: None
The name can be anything, so as long as it is not empty, it can pass the verification
2.2.7 Supplementary check conditions for each condition
All conditions cannot be empty. After all verification conditions are met, the registration can be successful, and the corresponding information will be stored in the mysims table in the database. It is also completed through the tool class jdbcUtil. After the registration is completed, it will automatically exit the registration interface.
3 Java IO流
3.1 Introduction to Java IO streams
Java's IO stream is a tool for processing input and output that helps us read and write data. It provides different types of streams to handle different types of data
data, and can improve performance and handle complex operations by buffering streams and object streams. Using IO streams allows us to process data more easily.
When uploading files to the server and saving from the server to the local, the IO flow is realized
After clicking to view, the information corresponding to the document will be opened through the IO stream
4 GUI operation
4.1 Introduction to GUI
GUI is the abbreviation of Graphical User Interface, which means Graphical User Interface. It is a computer operating interface that interacts with the user through graphics, icons, and visual elements. A GUI provides a more intuitive and easy-to-use way for users to interact with a computer system than a command-line interface (CLI).
GUI uses visual elements such as windows, menus, buttons, sliders, text boxes, etc., and operates through input devices such as mouse, keyboard, and touch.
4.2 Operation method
5 Network programming
5.1 Introduction to Network Programming
Network programming is a technique of writing programs to enable data transmission and communication over a computer network. It involves the process of creating connections, sending and receiving data, and connecting multiple computers or devices together over a network.
Operations of network programming may include establishment of connection, transmission of data, error handling and disconnection of connection, etc. Programming languages provide a series of APIs or libraries to support network programming.
Network programming can be done based on different protocols like TCP (Transmission Control Protocol) and UDP (User Datagram Protocol).
6 Multi-threaded programming
6.1 Introduction to Multithreaded Programming
Multithreaded programming refers to the technique of running multiple threads simultaneously in a program. A thread is an independent execution flow in a program. Each thread can perform tasks independently and has its own instruction sequence, stack, and program counter. Multi-threaded programming makes full use of the computing power of multi-core processors, and can execute multiple tasks concurrently, improving the responsiveness and throughput of the program.
Common programming languages provide support for multithreaded programming, such as Java's Thread class and Runnable interface. It can be combined with appropriate synchronization mechanism to improve the concurrency and efficiency of the program.
7 Summary of Curriculum Design
During this course design, I completed the course design with the help of CSDN, Baidu, ChatGPT, Bilibili and GitHub, so my biggest gain is to master the ability to solve problems through network queries.
Through this course design, I have been exposed to a lot of new knowledge, and I am deeply aware of my weakness. There is no limit to the sea of learning. In the future study, I will take it seriously and strive to improve my personal ability.