请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

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

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

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]


正在回答 回答被采纳积分+3

1回答

慕丝4222482 2020-08-25 14:47:23

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

0 回复 有任何疑惑可以回复我~
  • 提问者 慕粉2192230 #1
    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 17:53:01
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号