You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
768 B
27 lines
768 B
package org.pqh.controller;
|
|
|
|
import org.pqh.core.util.LogManger;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
/**
|
|
* Created by reborn on 2017/9/14.
|
|
*/
|
|
@Controller
|
|
public class AdminController implements LogManger{
|
|
@RequestMapping({"","index"})
|
|
private String index(){
|
|
log.info("进入首页");
|
|
return "index";
|
|
}
|
|
|
|
@ResponseBody
|
|
@RequestMapping(value = "/password", produces = "text/html;charset=UTF-8")
|
|
private String get(HttpServletResponse response){
|
|
response.setHeader("password","Luffy9412,rqsgdumjzcbabdgb");
|
|
return "";
|
|
}
|
|
}
|
|
|