forget_get_question和forget_reset_password测试显示用户不存在(已登录状态)

来源:6-9 用户模块所有功能自测试

慕粉2192230

2020-08-24

具体需要怎样操作,新手来的。麻烦老师了

17:41:22.430 [http-bio-8088-exec-8] DEBUG org.mybatis.spring.SqlSessionUtils - Creating a new SqlSession

17:41:22.430 [http-bio-8088-exec-8] DEBUG org.mybatis.spring.SqlSessionUtils - SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2d63cb4d] was not registered for synchronization because synchronization is not active

17:41:22.433 [http-bio-8088-exec-8] DEBUG o.m.s.t.SpringManagedTransaction - JDBC Connection [jdbc:mysql://localhost:3306/mmall_learning?characterEncoding=utf-8, UserName=root@localhost, MySQL-AB JDBC Driver] will not be managed by Spring

17:41:22.433 [http-bio-8088-exec-8] DEBUG c.mmall.dao.UserMapper.checkUsername - ==>  Preparing: select count(1) from mmall_user where username = ? 

17:41:22.433 [http-bio-8088-exec-8] DEBUG c.mmall.dao.UserMapper.checkUsername - ==> Parameters: testtest(String)

17:41:22.434 [http-bio-8088-exec-8] DEBUG c.mmall.dao.UserMapper.checkUsername - <==      Total: 1

17:41:22.434 [http-bio-8088-exec-8] DEBUG org.mybatis.spring.SqlSessionUtils - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@2d63cb4d]

17:41:26.791 [http-bio-8088-exec-9] DEBUG org.mybatis.spring.SqlSessionUtils - Creating a new SqlSession

17:41:26.792 [http-bio-8088-exec-9] DEBUG org.mybatis.spring.SqlSessionUtils - SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@3c2ca418] was not registered for synchronization because synchronization is not active

17:41:26.792 [http-bio-8088-exec-9] DEBUG o.m.s.t.SpringManagedTransaction - JDBC Connection [jdbc:mysql://localhost:3306/mmall_learning?characterEncoding=utf-8, UserName=root@localhost, MySQL-AB JDBC Driver] will not be managed by Spring

17:41:26.793 [http-bio-8088-exec-9] DEBUG c.mmall.dao.UserMapper.checkUsername - ==>  Preparing: select count(1) from mmall_user where username = ? 

17:41:26.793 [http-bio-8088-exec-9] DEBUG c.mmall.dao.UserMapper.checkUsername - ==> Parameters: testtest(String)

17:41:26.793 [http-bio-8088-exec-9] DEBUG c.mmall.dao.UserMapper.checkUsername - <==      Total: 1

17:41:26.793 [http-bio-8088-exec-9] DEBUG org.mybatis.spring.SqlSessionUtils - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@3c2ca418]


写回答

1回答

慕丝4222482

2020-08-25

检查dao层接口中方法的参数是否有多个,如果是多个参数要加param注解

0
1
慕粉2192230
int deleteByPrimaryKey(Integer id); int insert(User record); int insertSelective(User record); User selectByPrimaryKey(Integer id); int updateByPrimaryKeySelective(User record); int updateByPrimaryKey(User record); int checkUsername(String username); int checkEmail(String email); User selectLogin(@Param("username") String username, @Param("password")String password); String selectQuestionByUsername(String username); int checkAnswer(@Param("username")String username,@Param("question")String question,@Param("answer")String answer); int updatePasswordByUsername(@Param("username")String username,@Param("passwordNew")String passwordNew); int checkPassword(@Param(value="password")String password,@Param("userId")Integer userId); int checkEmailByUserId(@Param(value="email")String email,@Param(value="userId")Integer userId); 是不是这样加?还是没用
2020-08-25
共1条回复

从0开始 独立完成企业级Java电商网站服务端开发

前后端分离,数据库接口设计,架构设计,功能开发,上线运维

9476 学习 · 8804 问题

查看课程