Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

若提示登录超时、无此用户... #44

Open
FrRay opened this issue Jun 29, 2023 · 0 comments
Open

若提示登录超时、无此用户... #44

FrRay opened this issue Jun 29, 2023 · 0 comments

Comments

@FrRay
Copy link

FrRay commented Jun 29, 2023

1.--若提示登录超时、无此用户,先看自己mysql的版本,
注意8.0后版本的驱动为com.mysql.cj.jdbc.Driver
url后需要加?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT&nullCatalogMeansCurrent = true
来设置编码集,所在时区,避免报错。
我的工程中使用的是MySQL8.0.19,再使用相同版本jar包,添加到pom.xml中

mysql
mysql-connector-java
8.0.19

2.若web.xml下的contextConfigLocation爆红
先改为classpath:spring/springmvc.xml
再在pom.xml里把下的整个修改:


src/main/java

/*.properties
/.xml

false


src/main/resources

**/
.properties
**/*.xml

false

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant