mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-11-30 02:48:17 +08:00
更新截图
This commit is contained in:
parent
e96ef13609
commit
a0c488f8b0
Binary file not shown.
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 85 KiB |
Binary file not shown.
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 81 KiB |
@ -11,7 +11,7 @@ import org.springframework.web.context.request.RequestAttributes;
|
||||
*/
|
||||
public abstract class BaseController extends AbstractController {
|
||||
protected String userName;
|
||||
protected String userPwd;
|
||||
private String userPwd;
|
||||
|
||||
@Override
|
||||
public void resetInfo() {
|
||||
@ -19,6 +19,11 @@ public abstract class BaseController extends AbstractController {
|
||||
userPwd = getSessionAttribute(LoginInterceptor.SESSION_PWD);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当前登录人
|
||||
*
|
||||
* @return 用户名
|
||||
*/
|
||||
public static String getUserName() {
|
||||
return (String) getRequestAttributes().getAttribute(LoginInterceptor.SESSION_NAME, RequestAttributes.SCOPE_SESSION);
|
||||
}
|
||||
|
@ -5,6 +5,9 @@ import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping(value = "/")
|
||||
public class IndexControl extends BaseController {
|
||||
@ -17,7 +20,7 @@ public class IndexControl extends BaseController {
|
||||
/**
|
||||
* 加载首页
|
||||
*
|
||||
* @return
|
||||
* @return page
|
||||
*/
|
||||
@RequestMapping(value = {"index", "", "index.html", "/"}, method = RequestMethod.GET, produces = MediaType.TEXT_HTML_VALUE)
|
||||
public String index() {
|
||||
@ -27,7 +30,7 @@ public class IndexControl extends BaseController {
|
||||
/**
|
||||
* 退出登录
|
||||
*
|
||||
* @return
|
||||
* @return page
|
||||
*/
|
||||
@RequestMapping(value = "logout")
|
||||
public String logout() {
|
||||
|
@ -13,6 +13,9 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
*/
|
||||
@Controller
|
||||
public class LoginControl extends BaseController {
|
||||
|
||||
|
@ -4,6 +4,9 @@ import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping(value = "/")
|
||||
public class WelcomeController extends BaseController {
|
||||
|
@ -36,7 +36,7 @@ public class ManageControl extends BaseController {
|
||||
/**
|
||||
* 展示项目页面
|
||||
*
|
||||
* @return
|
||||
* @return page
|
||||
*/
|
||||
@RequestMapping(value = "projectInfo")
|
||||
public String projectInfo() {
|
||||
@ -83,8 +83,8 @@ public class ManageControl extends BaseController {
|
||||
/**
|
||||
* 删除项目
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
* @param id id
|
||||
* @return json
|
||||
*/
|
||||
@RequestMapping(value = "deleteProject", method = RequestMethod.POST)
|
||||
@ResponseBody
|
||||
|
@ -1 +1 @@
|
||||
错误啦
|
||||
<h1>错误啦</h1>
|
Loading…
Reference in New Issue
Block a user