JavaWeb implements a simple educational administration system-servlet-jsp-MVC

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

image-20210703174110748

  1. 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>
  1. Configure local repository

    image-20210703174851244

<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 okimage-20210703175552514

2. Configure tomcat

image-20210703175720866

image-20210703175824949

Select your tomcat installation path

image-20210703175926723

image-20210703175957692

3. Deploy the project to tomcat

image-20210703180145609

image-20210703180138768

Then all the way ok

4. Connect the database in idea

image-20210703180333520

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.

image-20210703180649285

5. The final step

image-20210703180810485

image-20210703180855030

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

image-20210703181326063

Then you can run it, running is a small green arrow.

5. Project screenshot

  1. Implemented user login, including user existence check, password correctness check, and login interface.img img img

  2. For administrators, you can manage user information and perform additions, deletions, and changes. '
    img

  3. Administrators can also add, delete, modify, and query course information.img img img img

  4. Administrators can view the grades of individual students.

  5. For students, you can choose courses and view your own information.img img

  6. Teachers can check the selection of courses for which they are responsible and give students grades.img

  7. Both administrators and teachers and students can modify their own passwords.img

  8. If you directly enter the webpage without logging in, you will be prompted to fail. Prevent users from performing operations without logging in.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324159360&siteId=291194637