|
|
|
|
@ -19,6 +19,9 @@ public class AdminController extends BaseController {
|
|
|
|
|
private AdminService adminService;
|
|
|
|
|
|
|
|
|
|
// 管理员登录页面准备
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 测试提交
|
|
|
|
|
@RequestMapping("index.action")
|
|
|
|
|
public String index() {
|
|
|
|
|
return "admin/index";
|
|
|
|
|
@ -28,7 +31,7 @@ public class AdminController extends BaseController {
|
|
|
|
|
@RequestMapping("login.action")
|
|
|
|
|
public String login() {
|
|
|
|
|
// 获取前端提交的用户名和密码
|
|
|
|
|
String username = this.getRequest().getParameter("username");
|
|
|
|
|
String username = this.getRequest().getParameter("username"); // 修改代码
|
|
|
|
|
String password = this.getRequest().getParameter("password");
|
|
|
|
|
// 创建Admin对象并设置用户名
|
|
|
|
|
Admin adminEntity = new Admin();
|
|
|
|
|
|