这里是修改密码功能
无法解析 'UserController' 中的方法 'getUidFromSession'
@RequestMapping("change_password")
public JsonResult<Void> changePassword(String oldPassword,
String newPassword,
HttpSession session){
Integer uid=getUidFromSession(session);
String username =getUsernameFromSession(session);
iuserservice.changePassword(uid,username,oldPassword,newPassword);
return new JsonResult<Void>(OK);
}
package com.cy.store.controller;
public class BaseController {
public static final int OK=200;
}
你没写这个方法就不能调呀😂