Configuration issues on the settlement of Student Information Management System

After finding the original bloggers projects in github, import esclipse in, but found not running. Page has been displayed:

404 not found

The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

Later on the Internet to find information on more than N and carefully reviewed the original bloggers development environment later found the problem.

First we look at the original bloggers development environment:

System environment: Windows

Development Tools: Eclipse

Java versions: JDK 1.7

Server: Tomcat 7.0

Database: MySQL 5.1

The system uses technology: the Servlet + Jsp the Jdbc + + + H-EasyUI the jQuery UI + + + Ajax oriented programming interface

My own development environment:

 

System environment: Windows

 

Development Tools: Eclipse

 

Java versions: JDK 1.7

 

Server: tomcat 7.0

 

Database: MySQL 8.0

 

The system uses technology: Servlet + Jsp + Jdbc + H-ui + EasyUI + jQuery + Ajax + oriented programming interface

 

Which differ only in MySQL version, and then we look at the problem in tomcat log:

Unknown initial character set index '255' received from server. Initial client character set can be····

This is a question about the URL character set, according to information found online, I put my URL address to:

jdbc:mysql://localhost:3306/ssms?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8

Later add ssms autoReconnect = true & amp;? UseUnicode = true & amp; characterEncoding = UTF-8

Well, the first problem is solved. When I start tomcat again, and a 404 page, so we have to see tomacat logs show this error:

java.sql.SQLException: Unknown system variable 'tx_isolation'

So I look for information on the Internet and found that this is due to the version of MySQL. My version is 8.0, and version 5.1 is a blogger, so mysql-connector-java 5.1.7.jar is clearly lagging. So I changed mysql-connector-java 5.1.47.jar. The second problem is solved.

The last version of MySQL may be due to the reason, in SystemInitListener the sql statement "SELECT * FROM system" error, checked the system is the word for the noun belongs to MySQL system, can not be used in version 8.0. Because I changed SELECT * FROM system1, the same table in the database system changed system1.


You're done, the project successfully launched!

This is the screen when I start:

 

Overall on three steps:

1.改URL   jdbc:mysql://localhost:3306/ssms?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8

2. The change into mysql-connector-java mysql-connector-java 5.1.47.jar

3.改sql语句和数据库表格名称                      改成SELECT * FROM system1      system改成system1

就这三步花了我三个小时的时间,以后遇到bug不要怕,查看tomcat日志,发现报错点,一步一步来!

 

Guess you like

Origin www.cnblogs.com/tzs123/p/12013432.html