我项目的配置没有问题,数据库连接正确,为什么用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]012021-05-17
相似问题