Maven project configuration (library management system v2 configuration)

Table of contents

1. Download project

2, import project

3. Import database script

4. Change the project database connection

5. Create server and virtual directory

6. Start the project


Take the second edition of the library management system I wrote as an example

1. Download project

https://gitee.com/kai_w/bookms3

After downloading, unzip it

2, import project

Select File>import>Maven>Existing Maven Projects, select the BookMSv3 folder just after decompression, and click Finish

Eclipse will automatically complete the project package and download the jar package required for the project according to the configured maven address. Please wait for the progress bar to complete before proceeding to the next step

After the download is complete, as shown in the lower right figure, the controller reports an error because tomcat has not been selected.

Right click on the project name, select properites at the bottom, check the operating environment, click apply and the project will no longer report an error, if it is still GBK, please replace it with UTF-8

 

3. Import database script

Open navicat for mysql, choose the connection name at will, then right-click the connection name, select New Database, then double-click to open the database, and select to run the sql file

Right-click the table and select Refresh, and the table will be displayed.

4. Change the project database connection

Change to your own database password

5. Create server and virtual directory

Move the image.zip in the project to the root directory of the D drive,

6. Start the project

After clicking Finish, the project runs and pops up the browser to enter the default login page, without manually entering the address

Find admin_num, admin_pwd in the database admin_info table, and log in with the corresponding account password.

 

Some students have a need for jsp pages. They have uploaded BookMSv4 to the download address, and the download will include the compressed package. The pages have been changed to jsp, and they can also be downloaded in the group.

If the picture is not displayed, first check whether the storage location of the picture is correct, and then check whether the virtual directory is configured in web.xml. After configuration, you need to restart tomcat

If the page refresh does not take effect after adding the page sidebar, you need to clear the browser cache and try again.

Due to the difference in computer resolution, after eclipse opens the xml, there may be inexplicable verification errors, but it does not affect normal use. You can enter the xml file that reported the error, select Source->Format on the menu bar on eclipse to adjust the xml format and save it, and report an  error disappear

You can also press and hold the shortcut ctrl+shift+f, but this conflicts with the Microsoft Chinese shortcut keys and may not take effect

 

Report the following certificate error solutions:

Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBui lderException: unable to find valid certification path to requested target

remove useSSL=true

 

 

Guess you like

Origin blog.csdn.net/qq_28631165/article/details/109206262