Note: Show part of the document content and system screenshots. If you need complete videos, codes, articles and installation and debugging environment, please send a private message to the up owner.
2.1 Introduction to Java language
After SUN was acquired by Oracle in 2010, Java became a high-level programming language launched by Oracle. Its English name "Java" comes from the Indonesian island of Java, and its logo symbolizes a steaming cup. coffee. In an environment where the Internet is prevalent, the Java language shows very obvious advantages and has broad development prospects. Similar to C++, the basic statement syntax of the Java language is very basic, but its unique object-oriented technology is more complete. Unlike other programming languages, the Java language requires all content to be classified and uses categories as the basic unit of the program, so the system is platform independent, safe and robust. The Java language is a specific object-oriented language that can handle information transmission protocols in the network and supports the client/server model. Since variables and methods are not allowed to exist outside the class, this feature is well reflected in Java. In layman's terms, the dynamic nature of Java is dynamic installation. This operation allows Java to dynamically maintain the program. There is no specific pointer in Java, so all operations on memory are implemented through objects. This avoids errors during pointer operations and also enhances the security and reliability of the system.
The Java language has good points, but of course it also has bad points. After each compilation is completed, the bytecode consumes time, which affects the nature and function of the program to some extent. But it does not affect the widespread use of Java language. The main features of Java can be summarized as:
1.Object-oriented
Object-oriented has four major characteristics: encapsulation, inheritance, polymorphism, and abstraction. Among them, abstraction means that we only focus on the main issues and ignore the secondary parts; polymorphism focuses on different responses to the same message; and inheritance means adding your own methods based on the parent class without changing the original 's parent class.
2. Cross-platform
Java compiles the code into bytecode and executes it directly. As long as the platform contains a Java virtual machine, it can run Java programs.
3. Reliability and security
Java must access memory through instance variables to prevent pointer errors
4. Parallel processing
Java multi-threading can achieve synchronous work and improve efficiency.
2.2 SSM frame
The SSM framework is a Java Web development framework consisting of three open source frameworks: Spring, SpringMVC and MyBatis. It integrates these three frameworks, each playing a different role in its area of expertise. Among them, the Spring framework is responsible for IoC and AOP, making the code more decoupled and reusable; the MyBatis framework is responsible for operating the persistence layer, and realizes the separation of SQL and Java through mapper mapping files, making data access simpler; and SpringMVC uses client-side and server-side request monitoring and response processing to separate the processing logic of requests and responses, making development more efficient [16].
The SSM framework has many advantages. First, it extends the Spring framework so that it can be integrated with the MyBatis framework to provide better persistence capabilities. Secondly, it has complete MVC support, which can make the code more layered and easier to maintain and expand. In addition, the SSM framework also supports simple configuration and rapid development, improving development efficiency and code readability.
In short, the SSM framework is a web development framework that integrates three frameworks. It provides a flexible, efficient, secure, and easy-to-maintain method for web development. Through the SSM framework, we can quickly complete web development tasks without worrying about code coupling and maintainability issues.
2.3 B/S frame
B/S frame is a very popular technology in the IT field at present. It has been applied in many aspects, mainly including: system analysis, design and implementation. This article develops an educational management system based on JavaWeb. The software consists of two parts: a front-end page module and a back-end database; the front-end and back-end use Java programming tools and MySQL as the basic data storage library; the back-end uses MYSQL as a program writing platform and provides simple and fast codes to complete operations. When running, you only need to add the source The interface display function can be completed by burning the code to the server, because based on the B/S structure, the business processed by the system can be clearly seen, allowing managers to make decisions in a timely manner, thereby reducing the risk of losses for the enterprise [13 ].
3.4.2 Number setting Physics Design
According to the E-R diagram, design the variable names of each table.
The following is the main data table for the development and design of this project
The student attendance data table, as shown in Table 3.1, is used for information such as the number of tardies, number of absentee days, and attendance dates.
Table 3.1: Student attendance sheet
Field Name |
type |
field length |
Field description |
Is it a primary key? |
default value |
ID |
bigint |
primary key |
yes |
||
Addtime |
timestamp |
creation time |
no |
Current_TIMESTAMP |
|
Kaoqinbianhao |
varchar |
200 |
Attendance number |
no |
|
Xueshengxuehao |
varchar |
200 |
Student ID number |
no |
|
Xueshengmingzi |
varchar |
200 |
student name |
no |
|
Kuangketianshu |
int |
Number of days absent from school |
no |
||
Chidaocishu |
varchar |
200 |
Number of times late |
no |
|
Kaoqinriqi |
date |
Attendance date |
no |
||
Jiaoshigonghao |
varchar |
200 |
Teacher ID number |
no |
|
Jiaoshimingzi |
varchar |
200 |
teacher name |
no |
Course classification table, as shown in Table 3.2, is used for course creation time and course classification information.
Table 3.2: Course classification table
Field Name |
type |
field length |
Field description |
Is it a primary key? |
default value |
ID |
bigint |
primary key |
yes |
||
Addtime |
timestamp |
creation time |
no |
Current_TIMESTAMP |
|
Kechengfenlei |
varchar |
200 |
course sorts |
no |
The student performance table, as shown in Table 3.3, is used for information such as grading scores, dates, and performance details.
Table 3.3: Student performance table
Field Name |
type |
field length |
Field description |
Is it a primary key? |
default value |
ID |
bigint |
primary key |
yes |
||
Addtime |
timestamp |
creation time |
no |
Current_TIMESTAMP |
|
Chengjibianhao |
varchar |
200 |
Grade number |
no |
|
Kemumingcheng |
varchar |
200 |
Course name |
no |
|
Kemuleibie |
varchar |
200 |
Course category |
no |
|
Pingfenfenshu |
float |
Rating score |
no |
||
Banjipaiming |
int |
class rank |
no |
||
Pingfenriqi |
datetime |
Rating date |
no |
||
Chengjixiangqing |
longtext |
4294967295 |
Score details |
no |
|
Xueshengxuehao |
varchar |
200 |
Student ID number |
no |
|
Xueshengxingming |
varchar |
200 |
student name |
no |
|
Jiaoshigonghao |
varchar |
200 |
Teacher ID number |
no |
|
Jiaoshimingzi |
varchar |
200 |
teacher name |
no |
The teacher table, as shown in Table 3.4, is used for information such as teacher ID, name, and password.
Table 3.4: Teacher list
Field Name |
type |
field length |
Field description |
Is it a primary key? |
default value |
ID |
bigint |
primary key |
yes |
||
Addtime |
timestamp |
creation time |
no |
Current_TIMESTAMP |
|
Jiaoshigonghao |
varchar |
200 |
Teacher ID number |
no |
|
Jiaoshimingzi |
varchar |
200 |
teacher name |
no |
|
Mima |
varchar |
200 |
account password |
no |
|
Xingbie |
varchar |
200 |
Teacher gender |
no |
|
Touxiang |
varchar |
200 |
Choose Avatar |
no |
|
Nianling |
int |
Teacher age |
no |
||
Shenfenzhenghao |
varchar |
200 |
Teacher ID number |
no |
|
Dianhuahaoma |
varchar |
200 |
telephone number |
no |
|
Jianjie |
longtext |
4294967295 |
Introduction |
no |
The student table, as shown in Table 3.5, is used for information such as student number, name, and password.
Table 3.5: Student table
Field Name |
type |
character length |
Field description |
Is it a primary key? |
default value |
ID |
bigint |
primary key |
yes |
||
Addtime |
timestamp |
creation time |
no |
Current_TIMESTAMP |
|
Xueshengxuehao |
varchar |
200 |
Student ID number |
no |
|
Xueshengmingzi |
varchar |
200 |
student name |
no |
|
Mima |
varchar |
200 |
account password |
no |
|
Xingbie |
varchar |
200 |
Student gender |
no |
|
Touxiang |
varchar |
200 |
Choose Avatar |
no |
|
Zhuanye |
varchar |
200 |
student's major |
no |
|
Banji |
varchar |
200 |
student's class |
no |
|
Nianling |
int |
student's age |
no |
||
Shenfenzhenghao |
varchar |
200 |
Student ID number |
no |
|
Dianhuahaoma |
varchar |
200 |
telephone number |
no |
4 Specific implementation of system functions
4.1 System function module
The home page of the system shows the school situation, announcement content, background management, etc., as shown in Figure 4.1.
On the course list page, you can view relevant information about the course, and know the introduction of the instructor and course.
The implementation process is as follows:
By clicking on the course information on the navigation bar and using the $http.get method to call the 'kechengxinxi/list' interface, you can obtain all the data in the kechengxinxi data table in the database and enter the course information interface, such as As shown in Figure 4.2.
code show as below:
Update it by writing your own information in the personal information page, as shown in Figure 4.3.
The implementation process is as follows:
Students click Modify in the personal information list, and use the $http.post method in the center folder to contact the backend. The backend calls the this.userTableName + '/update' interface to update the xuesheng data in the database. Table modification.
The core code is implemented as follows:
1.3 Functions implemented by the system
1.4 Characteristics of educational management information system
1.5 Organizational structure of this article
2 Development technology and environment configuration
2.1 Introduction to Java language
2.4 Introduction to mysql database