提交 d66ac5de 编写于 作者: shuzheng5201314's avatar shuzheng5201314

增加登录、注册、退出、找回密码方法

上级 f8a3f73c
package com.zheng.ucenter.home.controller;
public class AppController {
}
\ No newline at end of file
package com.zheng.ucenter.web.controller;
import com.zheng.common.base.BaseController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* 注册控制器
* Created by shuzheng on 2017/5/2.
*/
@Controller
public class SignController extends BaseController {
private static Logger _log = LoggerFactory.getLogger(SignController.class);
@RequestMapping(value = "/signup", method = RequestMethod.GET)
public String signup(Model model) {
return thymeleaf("/reg");
}
@RequestMapping(value = "/signin", method = RequestMethod.GET)
public String signin(Model model) {
return thymeleaf("/login");
}
@RequestMapping(value = "/signout", method = RequestMethod.GET)
@ResponseBody
public String index(Model model) {
return "signout";
}
@RequestMapping(value = "/password_reset", method = RequestMethod.GET)
public String password_reset(Model model) {
return thymeleaf("/password");
}
}
\ No newline at end of file
env=${profile.env}
app.name=${app.name}
zheng-ui.path=${zheng-ui.path}
\ No newline at end of file
profile.env=dev
app.name=zheng-ucenter-web
zheng-ui.path=http://ui.zhangshuzheng.cn:1000
\ No newline at end of file
profile.env=prod
app.name=zheng-ucenter-web
zheng-ui.path=http://ui.zhangshuzheng.cn:1000
\ No newline at end of file
profile.env=test
app.name=zheng-ucenter-web
zheng-ui.path=http://ui.zhangshuzheng.cn:1000
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册