This is a small homework for our database. I wrote this project with the attitude of practicing javaWeb. Now I only update how to run the project, and have the opportunity to update the ideas of my own project.
Project download link: download address
1. Project run
1.1 Development environment
Development environment: jdk 1.8
Development tools: IDEA, mysql 5.6, Tomcat8.5, maven3.8.1, Navicat Premium 15.0.12
1.2 Project introduction
This is a pure JavaWeb project that adopts the MVC pattern, namely model-view-controller, without using other frameworks. It adopts a simple course-selecting JavaWeb project implemented by pure servlet+jsp. The functions are as follows: Include Admin Teacher Student
Design a simple teaching management system whose users include students, teachers and administrators. in:
1. Students can manage their own information and choose courses;
2. Teachers can manage their own information, course management and grade management;
3. The administrator manages the course information;
4. Design corresponding functions according to the needs of the teaching management system.
1.3 Operating Instructions
This project has modified the local warehouse path and changed the maven image to an Alibaba cloud image. If you are not a novice, there is no need to read the following content. The name of the database is uims.
If you are new and just want to run, please read this section carefully.
1.3.1 Configuring the database
The uims.sql file is the database of the project. Please manually create a database named uims in navicat or other database operation software (this is very important, otherwise you need to modify a lot of things), run the sql file, if the sql file does not work, it may be Your navicat version is too low , please manually copy the contents of the sql file and run it.
1.3.2 Configure maven
- Open the maven installation directory, open the settings.xml file, and modify it to an Alibaba Cloud image. If it is not changed to an Alibaba Cloud image, the network speed will be very slow if it is obtained from abroad when pulling dependencies.
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*,!jeecg,!jeecg-snapshots</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
-
Configure local repository
<localRepository>D:\Java\apache-maven-3.8.1-bin\apache-maven-3.8.1\maven-repo</localRepository>
It is best to modify it to your maven installation directory, and manually create a maven-repo folder under the maven installation directory, so that the jar packages you download in the future will be automatically imported into your own repository instead of the default path
1.3.3 Configuring the idea
1. The next step is to run the project, decompress uims_final.zip, click file-open-select the decompressed path in the idea, and then ok
2. Configure tomcat
Select your tomcat installation path
3. Deploy the project to tomcat
Then all the way ok
4. Connect the database in idea
If you connect mysql in idea for the first time, he will prompt you to download something, just choose to download, and the red arrow position at the bottom of the picture below me will prompt to download (because I have downloaded it, so there is no prompt), Then test the connection, it will show me like this if the test is successful, if it is unsuccessful, there will be a red prompt, just follow the prompts.
5. The final step
Modify some configurations in the idea, as shown in the figure, and modify it to your corresponding location.
resource-db.properties Change the database name and password to your own
Then you can run it, running is a small green arrow.
5. Project screenshot
-
Implemented user login, including user existence check, password correctness check, and login interface.
-
For administrators, you can manage user information and perform additions, deletions, and changes. '
-
Administrators can also add, delete, modify, and query course information.
-
Administrators can view the grades of individual students.
-
For students, you can choose courses and view your own information.
-
Teachers can check the selection of courses for which they are responsible and give students grades.
-
Both administrators and teachers and students can modify their own passwords.
-
If you directly enter the webpage without logging in, you will be prompted to fail. Prevent users from performing operations without logging in.