我项目的配置没有问题,数据库连接正确,为什么用admin,admin进行登录,显示用户名密码错误

来源:14-6 部署pay项目

慕前端0519158

2021-05-06

http://192.168.1.107/api/user/login
请求{“username”:“admin”,“password”:“admin”}
响应{“status”:11,“msg”:“用户名或者密码错误”}
账号密码肯定没有问题,数据库连接正确

日志
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@bba3ad7] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@92132816 wrapping com.mysql.cj.jdbc.ConnectionImpl@411cb9cc] will not be managed by Spring
> Preparing: select id, username, password, email, phone, question, answer, role, create_time, update_time from mall_user where username = ?
> Parameters: admin(String)
< Columns: id, username, password, email, phone, question, answer, role, create_time, update_time
< Row: 1, admin, 21232F297A57A5A743894A0E4A801FC3, admin@qq.com, null, null, null, 0, 2000-08-06 15:12:00, 2021-05-06 22:56:14
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@bba3ad7]

写回答

1回答

慕前端0519158

提问者

2021-05-07

这是我的日志

Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@bba3ad7] was not registered for synchronization because synchronization is not active
JDBC Connection [HikariProxyConnection@92132816 wrapping com.mysql.cj.jdbc.ConnectionImpl@411cb9cc] will not be managed by Spring
==>  Preparing: select id, username, password, email, phone, question, answer, role, create_time, update_time from mall_user where username = ?
==> Parameters: admin(String)
<==    Columns: id, username, password, email, phone, question, answer, role, create_time, update_time
<==        Row: 1, admin, 21232F297A57A5A743894A0E4A801FC3, admin@qq.com, null, null, null, 0, 2000-08-06 15:12:00, 2021-05-06 22:56:14
<==      Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@bba3ad7]

0
1
廖师兄
账号没有问题. 密码md5后,对比一下。debug打断点观察
2021-05-17
共1条回复

实战支付+电商双系统 玩转Java技术栈

花一份课的价,收获:双系统实战+坐拥20K+粉的师兄指导,值~

2054 学习 · 1049 问题

查看课程