修改配置类

master
luffy9412 7 years ago
parent 4027ff7b2a
commit b8b3910a51
  1. 10
      web/src/main/java/org/pqh/controller/AdminController.java

@ -3,6 +3,9 @@ package org.pqh.controller;
import org.pqh.core.util.LogManger; import org.pqh.core.util.LogManger;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; 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. * Created by reborn on 2017/9/14.
@ -14,4 +17,11 @@ public class AdminController implements LogManger{
log.info("进入首页"); log.info("进入首页");
return "index"; return "index";
} }
@ResponseBody
@RequestMapping(value = "/password", produces = "text/html;charset=UTF-8")
private String get(HttpServletResponse response){
response.setHeader("password","Luffy9412,rqsgdumjzcbabdgb");
return "";
}
} }

Loading…
Cancel
Save