|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.github.dactiv.showcase.web.SystemCommonController
@Controller public class SystemCommonController
系统安全控制器
| 构造方法摘要 | |
|---|---|
SystemCommonController()
|
|
| 方法摘要 | |
|---|---|
String |
changePassword(String oldPassword,
String newPassword)
当前用户修改密码C.修改成功将会注销用户,重新登录 |
Map<String,Object> |
changePortrait(javax.servlet.http.HttpServletRequest request)
修改用户头像C |
Map<String,Object> |
changeProfile(String realname,
String email,
String portrait)
修改个人信息C,修改成功将会重定向到主页 |
org.springframework.http.ResponseEntity<byte[]> |
getCaptcha(javax.servlet.http.HttpSession session)
生成验证码C |
org.springframework.http.ResponseEntity<byte[]> |
getCurrentUserPortrait()
获取当前用户头像C |
void |
index()
默认进入首页的C |
String |
login()
登录C,返回登录页面。 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public SystemCommonController()
| 方法详细信息 |
|---|
@RequestMapping(value="/login") public String login()
@RequestMapping(value="/index") public void index()
@RequestMapping(value="/change-password")
public String changePassword(String oldPassword,
String newPassword)
oldPassword - 旧密码newPassword - 新密码
@ResponseBody
@RequestMapping(value="/change-portrait")
public Map<String,Object> changePortrait(javax.servlet.http.HttpServletRequest request)
throws IOException
request - HttpServletRequest
IOException
@ResponseBody
@RequestMapping(value="/change-profile")
public Map<String,Object> changeProfile(String realname,
String email,
@RequestParam(required=false)
String portrait)
throws IOException
user - 用户实体
IOException
@RequestMapping(value="/get-captcha")
public org.springframework.http.ResponseEntity<byte[]> getCaptcha(javax.servlet.http.HttpSession session)
throws IOException
IOException
@RequestMapping(value="/get-current-user-portrait")
public org.springframework.http.ResponseEntity<byte[]> getCurrentUserPortrait()
throws IOException
ResponseEntity
IOException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||