逻辑视图改为.jsp后缀

This commit is contained in:
shuzheng 2017-03-21 14:29:54 +08:00
parent a46c1d8dcb
commit 2ce1d91370
22 changed files with 53 additions and 53 deletions

View File

@ -27,7 +27,7 @@ public class ManageController extends BaseController {
@ApiOperation(value = "后台首页") @ApiOperation(value = "后台首页")
@RequestMapping(value = "/index", method = RequestMethod.GET) @RequestMapping(value = "/index", method = RequestMethod.GET)
public String index() { public String index() {
return "/jsp/manage/index"; return "/manage/index.jsp";
} }
} }

View File

@ -49,7 +49,7 @@ public class CmsArticleController extends BaseController {
@RequiresPermissions("cms:article:read") @RequiresPermissions("cms:article:read")
@RequestMapping(value = "/index", method = RequestMethod.GET) @RequestMapping(value = "/index", method = RequestMethod.GET)
public String index() { public String index() {
return "/jsp/manage/article/index"; return "/manage/article/index.jsp";
} }
@ApiOperation(value = "文章列表") @ApiOperation(value = "文章列表")
@ -83,7 +83,7 @@ public class CmsArticleController extends BaseController {
cmsTopicExample.setOrderByClause("ctime desc"); cmsTopicExample.setOrderByClause("ctime desc");
List<CmsTopic> cmsTopics = cmsTopicService.selectByExample(cmsTopicExample); List<CmsTopic> cmsTopics = cmsTopicService.selectByExample(cmsTopicExample);
modelMap.put("cmsTopics", cmsTopics); modelMap.put("cmsTopics", cmsTopics);
return "/jsp/manage/article/create"; return "/manage/article/create.jsp";
} }
@ApiOperation(value = "新增文章") @ApiOperation(value = "新增文章")
@ -124,7 +124,7 @@ public class CmsArticleController extends BaseController {
CmsArticle article = cmsArticleService.selectByPrimaryKey(id); CmsArticle article = cmsArticleService.selectByPrimaryKey(id);
modelMap.put("cmsTopics", cmsTopics); modelMap.put("cmsTopics", cmsTopics);
modelMap.put("article", article); modelMap.put("article", article);
return "/jsp/manage/article/update"; return "/manage/article/update.jsp";
} }
@ApiOperation(value = "修改文章") @ApiOperation(value = "修改文章")

View File

@ -43,7 +43,7 @@ public class CmsCategoryController extends BaseController {
@RequiresPermissions("cms:category:read") @RequiresPermissions("cms:category:read")
@RequestMapping(value = "/index", method = RequestMethod.GET) @RequestMapping(value = "/index", method = RequestMethod.GET)
public String index() { public String index() {
return "/jsp/manage/category/index"; return "/manage/category/index.jsp";
} }
@ApiOperation(value = "类目列表") @ApiOperation(value = "类目列表")
@ -73,7 +73,7 @@ public class CmsCategoryController extends BaseController {
@RequiresPermissions("cms:category:create") @RequiresPermissions("cms:category:create")
@RequestMapping(value = "/create", method = RequestMethod.GET) @RequestMapping(value = "/create", method = RequestMethod.GET)
public String create() { public String create() {
return "/jsp/manage/category/create"; return "/manage/category/create.jsp";
} }
@ApiOperation(value = "新增类目") @ApiOperation(value = "新增类目")
@ -110,7 +110,7 @@ public class CmsCategoryController extends BaseController {
public String update(@PathVariable("id") int id, ModelMap modelMap) { public String update(@PathVariable("id") int id, ModelMap modelMap) {
CmsCategory category = cmsCategoryService.selectByPrimaryKey(id); CmsCategory category = cmsCategoryService.selectByPrimaryKey(id);
modelMap.put("category", category); modelMap.put("category", category);
return "/jsp/manage/category/update"; return "/manage/category/update.jsp";
} }
@ApiOperation(value = "修改类目") @ApiOperation(value = "修改类目")

View File

@ -39,7 +39,7 @@ public class CmsCommentController extends BaseController {
@RequiresPermissions("cms:comment:read") @RequiresPermissions("cms:comment:read")
@RequestMapping(value = "/index", method = RequestMethod.GET) @RequestMapping(value = "/index", method = RequestMethod.GET)
public String index() { public String index() {
return "/jsp/manage/comment/index"; return "/manage/comment/index.jsp";
} }
@ApiOperation(value = "评论列表") @ApiOperation(value = "评论列表")
@ -69,7 +69,7 @@ public class CmsCommentController extends BaseController {
@RequiresPermissions("cms:comment:create") @RequiresPermissions("cms:comment:create")
@RequestMapping(value = "/create", method = RequestMethod.GET) @RequestMapping(value = "/create", method = RequestMethod.GET)
public String create() { public String create() {
return "/jsp/manage/comment/create"; return "/manage/comment/create.jsp";
} }
@ApiOperation(value = "新增评论") @ApiOperation(value = "新增评论")
@ -98,7 +98,7 @@ public class CmsCommentController extends BaseController {
public String update(@PathVariable("id") int id, ModelMap modelMap) { public String update(@PathVariable("id") int id, ModelMap modelMap) {
CmsComment comment = cmsCommentService.selectByPrimaryKey(id); CmsComment comment = cmsCommentService.selectByPrimaryKey(id);
modelMap.put("comment", comment); modelMap.put("comment", comment);
return "/jsp/manage/comment/update"; return "/manage/comment/update.jsp";
} }
@ApiOperation(value = "修改评论") @ApiOperation(value = "修改评论")

View File

@ -43,7 +43,7 @@ public class CmsMenuController extends BaseController {
@RequiresPermissions("cms:menu:read") @RequiresPermissions("cms:menu:read")
@RequestMapping(value = "/index", method = RequestMethod.GET) @RequestMapping(value = "/index", method = RequestMethod.GET)
public String index() { public String index() {
return "/jsp/manage/menu/index"; return "/manage/menu/index.jsp";
} }
@ApiOperation(value = "评论列表") @ApiOperation(value = "评论列表")
@ -73,7 +73,7 @@ public class CmsMenuController extends BaseController {
@RequiresPermissions("cms:menu:create") @RequiresPermissions("cms:menu:create")
@RequestMapping(value = "/create", method = RequestMethod.GET) @RequestMapping(value = "/create", method = RequestMethod.GET)
public String create() { public String create() {
return "/jsp/manage/menu/create"; return "/manage/menu/create.jsp";
} }
@ApiOperation(value = "新增菜单") @ApiOperation(value = "新增菜单")
@ -109,7 +109,7 @@ public class CmsMenuController extends BaseController {
public String update(@PathVariable("id") int id, ModelMap modelMap) { public String update(@PathVariable("id") int id, ModelMap modelMap) {
CmsMenu menu = cmsMenuService.selectByPrimaryKey(id); CmsMenu menu = cmsMenuService.selectByPrimaryKey(id);
modelMap.put("menu", menu); modelMap.put("menu", menu);
return "/jsp/manage/menu/update"; return "/manage/menu/update.jsp";
} }
@ApiOperation(value = "修改菜单") @ApiOperation(value = "修改菜单")

View File

@ -43,7 +43,7 @@ public class CmsPageController extends BaseController {
@RequiresPermissions("cms:page:read") @RequiresPermissions("cms:page:read")
@RequestMapping(value = "/index", method = RequestMethod.GET) @RequestMapping(value = "/index", method = RequestMethod.GET)
public String index() { public String index() {
return "/jsp/manage/page/index"; return "/manage/page/index.jsp";
} }
@ApiOperation(value = "评论列表") @ApiOperation(value = "评论列表")
@ -73,7 +73,7 @@ public class CmsPageController extends BaseController {
@RequiresPermissions("cms:page:create") @RequiresPermissions("cms:page:create")
@RequestMapping(value = "/create", method = RequestMethod.GET) @RequestMapping(value = "/create", method = RequestMethod.GET)
public String create() { public String create() {
return "/jsp/manage/page/create"; return "/manage/page/create.jsp";
} }
@ApiOperation(value = "新增单页") @ApiOperation(value = "新增单页")
@ -110,7 +110,7 @@ public class CmsPageController extends BaseController {
public String update(@PathVariable("id") int id, ModelMap modelMap) { public String update(@PathVariable("id") int id, ModelMap modelMap) {
CmsPage page = cmsPageService.selectByPrimaryKey(id); CmsPage page = cmsPageService.selectByPrimaryKey(id);
modelMap.put("page", page); modelMap.put("page", page);
return "/jsp/manage/page/update"; return "/manage/page/update.jsp";
} }
@ApiOperation(value = "修改单页") @ApiOperation(value = "修改单页")

View File

@ -43,7 +43,7 @@ public class CmsSettingController extends BaseController {
@RequiresPermissions("cms:setting:read") @RequiresPermissions("cms:setting:read")
@RequestMapping(value = "/index", method = RequestMethod.GET) @RequestMapping(value = "/index", method = RequestMethod.GET)
public String index() { public String index() {
return "/jsp/manage/setting/index"; return "/manage/setting/index.jsp";
} }
@ApiOperation(value = "评论列表") @ApiOperation(value = "评论列表")
@ -73,7 +73,7 @@ public class CmsSettingController extends BaseController {
@RequiresPermissions("cms:setting:create") @RequiresPermissions("cms:setting:create")
@RequestMapping(value = "/create", method = RequestMethod.GET) @RequestMapping(value = "/create", method = RequestMethod.GET)
public String create() { public String create() {
return "/jsp/manage/setting/create"; return "/manage/setting/create.jsp";
} }
@ApiOperation(value = "新增设置") @ApiOperation(value = "新增设置")
@ -107,7 +107,7 @@ public class CmsSettingController extends BaseController {
public String update(@PathVariable("id") int id, ModelMap modelMap) { public String update(@PathVariable("id") int id, ModelMap modelMap) {
CmsSetting setting = cmsSettingService.selectByPrimaryKey(id); CmsSetting setting = cmsSettingService.selectByPrimaryKey(id);
modelMap.put("setting", setting); modelMap.put("setting", setting);
return "/jsp/manage/setting/update"; return "/manage/setting/update.jsp";
} }
@ApiOperation(value = "修改设置") @ApiOperation(value = "修改设置")

View File

@ -43,7 +43,7 @@ public class CmsTagController extends BaseController {
@RequiresPermissions("cms:tag:read") @RequiresPermissions("cms:tag:read")
@RequestMapping(value = "/index", method = RequestMethod.GET) @RequestMapping(value = "/index", method = RequestMethod.GET)
public String index() { public String index() {
return "/jsp/manage/tag/index"; return "/manage/tag/index.jsp";
} }
@ApiOperation(value = "评论列表") @ApiOperation(value = "评论列表")
@ -73,7 +73,7 @@ public class CmsTagController extends BaseController {
@RequiresPermissions("cms:tag:create") @RequiresPermissions("cms:tag:create")
@RequestMapping(value = "/create", method = RequestMethod.GET) @RequestMapping(value = "/create", method = RequestMethod.GET)
public String create() { public String create() {
return "/jsp/manage/tag/create"; return "/manage/tag/create.jsp";
} }
@ApiOperation(value = "新增标签") @ApiOperation(value = "新增标签")
@ -110,7 +110,7 @@ public class CmsTagController extends BaseController {
public String update(@PathVariable("id") int id, ModelMap modelMap) { public String update(@PathVariable("id") int id, ModelMap modelMap) {
CmsTag tag = cmsTagService.selectByPrimaryKey(id); CmsTag tag = cmsTagService.selectByPrimaryKey(id);
modelMap.put("tag", tag); modelMap.put("tag", tag);
return "/jsp/manage/tag/update"; return "/manage/tag/update.jsp";
} }
@ApiOperation(value = "修改标签") @ApiOperation(value = "修改标签")

View File

@ -43,7 +43,7 @@ public class CmsTopicController extends BaseController {
@RequiresPermissions("cms:topic:read") @RequiresPermissions("cms:topic:read")
@RequestMapping(value = "/index", method = RequestMethod.GET) @RequestMapping(value = "/index", method = RequestMethod.GET)
public String index() { public String index() {
return "/jsp/manage/topic/index"; return "/manage/topic/index.jsp";
} }
@ApiOperation(value = "评论列表") @ApiOperation(value = "评论列表")
@ -73,7 +73,7 @@ public class CmsTopicController extends BaseController {
@RequiresPermissions("cms:topic:create") @RequiresPermissions("cms:topic:create")
@RequestMapping(value = "/create", method = RequestMethod.GET) @RequestMapping(value = "/create", method = RequestMethod.GET)
public String create() { public String create() {
return "/jsp/manage/topic/create"; return "/manage/topic/create.jsp";
} }
@ApiOperation(value = "新增专题") @ApiOperation(value = "新增专题")
@ -109,7 +109,7 @@ public class CmsTopicController extends BaseController {
public String update(@PathVariable("id") int id, ModelMap modelMap) { public String update(@PathVariable("id") int id, ModelMap modelMap) {
CmsTopic topic = cmsTopicService.selectByPrimaryKey(id); CmsTopic topic = cmsTopicService.selectByPrimaryKey(id);
modelMap.put("topic", topic); modelMap.put("topic", topic);
return "/jsp/manage/topic/update"; return "/manage/topic/update.jsp";
} }
@ApiOperation(value = "修改专题") @ApiOperation(value = "修改专题")

View File

@ -50,7 +50,7 @@ public class IndexController extends BaseController {
cmsTagExample.setOrderByClause("orders asc"); cmsTagExample.setOrderByClause("orders asc");
List<CmsTag> tags = cmsTagService.selectByExample(cmsTagExample); List<CmsTag> tags = cmsTagService.selectByExample(cmsTagExample);
model.addAttribute("tags", tags); model.addAttribute("tags", tags);
return "/jsp/index"; return "/index.jsp";
} }
} }

View File

@ -32,13 +32,13 @@ public abstract class BaseController {
} }
// shiro没有权限异常 // shiro没有权限异常
if (exception instanceof UnauthorizedException) { if (exception instanceof UnauthorizedException) {
return "/jsp/403"; return "/403.jsp";
} }
// shiro会话已过期异常 // shiro会话已过期异常
if (exception instanceof InvalidSessionException) { if (exception instanceof InvalidSessionException) {
return "/jsp/error"; return "/error.jsp";
} }
return "/jsp/error"; return "/error.jsp";
} }
} }

View File

@ -27,7 +27,7 @@ public class IndexController extends BaseController {
*/ */
@RequestMapping(value = "/jsp", method = RequestMethod.GET) @RequestMapping(value = "/jsp", method = RequestMethod.GET)
public String jsp() { public String jsp() {
return "/jsp/index"; return "/index.jsp";
} }
/** /**

View File

@ -50,7 +50,7 @@ public class ManageController extends BaseController {
UpmsUser upmsUser = upmsApiService.selectUpmsUserByUsername(username); UpmsUser upmsUser = upmsApiService.selectUpmsUserByUsername(username);
List<UpmsPermission> upmsPermissions = upmsApiService.selectUpmsPermissionByUpmsUserId(upmsUser.getUserId()); List<UpmsPermission> upmsPermissions = upmsApiService.selectUpmsPermissionByUpmsUserId(upmsUser.getUserId());
modelMap.put("upmsPermissions", upmsPermissions); modelMap.put("upmsPermissions", upmsPermissions);
return "/jsp/manage/index"; return "/manage/index.jsp";
} }
} }

View File

@ -104,7 +104,7 @@ public class SSOController extends BaseController {
_log.debug("认证中心帐号通过带code回跳{}", backurl); _log.debug("认证中心帐号通过带code回跳{}", backurl);
return "redirect:" + backurl; return "redirect:" + backurl;
} }
return "/jsp/sso/login"; return "/sso/login.jsp";
} }
@ApiOperation(value = "登录") @ApiOperation(value = "登录")

View File

@ -38,7 +38,7 @@ public class UpmsLogController extends BaseController {
@RequiresPermissions("upms:log:read") @RequiresPermissions("upms:log:read")
@RequestMapping(value = "/index", method = RequestMethod.GET) @RequestMapping(value = "/index", method = RequestMethod.GET)
public String index() { public String index() {
return "/jsp/manage/log/index"; return "/manage/log/index.jsp";
} }
@ApiOperation(value = "日志列表") @ApiOperation(value = "日志列表")

View File

@ -43,7 +43,7 @@ public class UpmsOrganizationController extends BaseController {
@RequiresPermissions("upms:organization:read") @RequiresPermissions("upms:organization:read")
@RequestMapping(value = "/index", method = RequestMethod.GET) @RequestMapping(value = "/index", method = RequestMethod.GET)
public String index() { public String index() {
return "/jsp/manage/organization/index"; return "/manage/organization/index.jsp";
} }
@ApiOperation(value = "组织列表") @ApiOperation(value = "组织列表")
@ -73,7 +73,7 @@ public class UpmsOrganizationController extends BaseController {
@RequiresPermissions("upms:organization:create") @RequiresPermissions("upms:organization:create")
@RequestMapping(value = "/create", method = RequestMethod.GET) @RequestMapping(value = "/create", method = RequestMethod.GET)
public String create() { public String create() {
return "/jsp/manage/organization/create"; return "/manage/organization/create.jsp";
} }
@ApiOperation(value = "新增组织") @ApiOperation(value = "新增组织")
@ -109,7 +109,7 @@ public class UpmsOrganizationController extends BaseController {
public String update(@PathVariable("id") int id, ModelMap modelMap) { public String update(@PathVariable("id") int id, ModelMap modelMap) {
UpmsOrganization organization = upmsOrganizationService.selectByPrimaryKey(id); UpmsOrganization organization = upmsOrganizationService.selectByPrimaryKey(id);
modelMap.put("organization", organization); modelMap.put("organization", organization);
return "/jsp/manage/organization/update"; return "/manage/organization/update.jsp";
} }
@ApiOperation(value = "修改组织") @ApiOperation(value = "修改组织")

View File

@ -50,7 +50,7 @@ public class UpmsPermissionController extends BaseController {
@RequiresPermissions("upms:permission:read") @RequiresPermissions("upms:permission:read")
@RequestMapping(value = "/index", method = RequestMethod.GET) @RequestMapping(value = "/index", method = RequestMethod.GET)
public String index() { public String index() {
return "/jsp/manage/permission/index"; return "/manage/permission/index.jsp";
} }
@ApiOperation(value = "权限列表") @ApiOperation(value = "权限列表")
@ -148,7 +148,7 @@ public class UpmsPermissionController extends BaseController {
.andStatusEqualTo((byte) 1); .andStatusEqualTo((byte) 1);
List<UpmsSystem> upmsSystems = upmsSystemService.selectByExample(upmsSystemExample); List<UpmsSystem> upmsSystems = upmsSystemService.selectByExample(upmsSystemExample);
modelMap.put("upmsSystems", upmsSystems); modelMap.put("upmsSystems", upmsSystems);
return "/jsp/manage/permission/create"; return "/manage/permission/create.jsp";
} }
@ApiOperation(value = "新增权限") @ApiOperation(value = "新增权限")
@ -190,7 +190,7 @@ public class UpmsPermissionController extends BaseController {
UpmsPermission permission = upmsPermissionService.selectByPrimaryKey(id); UpmsPermission permission = upmsPermissionService.selectByPrimaryKey(id);
modelMap.put("permission", permission); modelMap.put("permission", permission);
modelMap.put("upmsSystems", upmsSystems); modelMap.put("upmsSystems", upmsSystems);
return "/jsp/manage/permission/update"; return "/manage/permission/update.jsp";
} }
@ApiOperation(value = "修改权限") @ApiOperation(value = "修改权限")

View File

@ -53,7 +53,7 @@ public class UpmsRoleController extends BaseController {
@RequiresPermissions("upms:role:read") @RequiresPermissions("upms:role:read")
@RequestMapping(value = "/index", method = RequestMethod.GET) @RequestMapping(value = "/index", method = RequestMethod.GET)
public String index() { public String index() {
return "/jsp/manage/role/index"; return "/manage/role/index.jsp";
} }
@ApiOperation(value = "角色权限") @ApiOperation(value = "角色权限")
@ -62,7 +62,7 @@ public class UpmsRoleController extends BaseController {
public String permission(@PathVariable("id") int id, ModelMap modelMap) { public String permission(@PathVariable("id") int id, ModelMap modelMap) {
UpmsRole role = upmsRoleService.selectByPrimaryKey(id); UpmsRole role = upmsRoleService.selectByPrimaryKey(id);
modelMap.put("role", role); modelMap.put("role", role);
return "/jsp/manage/role/permission"; return "/manage/role/permission.jsp";
} }
@ApiOperation(value = "角色权限") @ApiOperation(value = "角色权限")
@ -119,7 +119,7 @@ public class UpmsRoleController extends BaseController {
@RequiresPermissions("upms:role:create") @RequiresPermissions("upms:role:create")
@RequestMapping(value = "/create", method = RequestMethod.GET) @RequestMapping(value = "/create", method = RequestMethod.GET)
public String create() { public String create() {
return "/jsp/manage/role/create"; return "/manage/role/create.jsp";
} }
@ApiOperation(value = "新增角色") @ApiOperation(value = "新增角色")
@ -157,7 +157,7 @@ public class UpmsRoleController extends BaseController {
public String update(@PathVariable("id") int id, ModelMap modelMap) { public String update(@PathVariable("id") int id, ModelMap modelMap) {
UpmsRole role = upmsRoleService.selectByPrimaryKey(id); UpmsRole role = upmsRoleService.selectByPrimaryKey(id);
modelMap.put("role", role); modelMap.put("role", role);
return "/jsp/manage/role/update"; return "/manage/role/update.jsp";
} }
@ApiOperation(value = "修改角色") @ApiOperation(value = "修改角色")

View File

@ -31,7 +31,7 @@ public class UpmsSessionController extends BaseController {
@RequiresPermissions("upms:session:read") @RequiresPermissions("upms:session:read")
@RequestMapping(value = "/index", method = RequestMethod.GET) @RequestMapping(value = "/index", method = RequestMethod.GET)
public String index() { public String index() {
return "/jsp/manage/session/index"; return "/manage/session/index.jsp";
} }
@ApiOperation(value = "会话列表") @ApiOperation(value = "会话列表")

View File

@ -43,7 +43,7 @@ public class UpmsSystemController extends BaseController {
@RequiresPermissions("upms:system:read") @RequiresPermissions("upms:system:read")
@RequestMapping(value = "/index", method = RequestMethod.GET) @RequestMapping(value = "/index", method = RequestMethod.GET)
public String index() { public String index() {
return "/jsp/manage/system/index"; return "/manage/system/index.jsp";
} }
@ApiOperation(value = "系统列表") @ApiOperation(value = "系统列表")
@ -73,7 +73,7 @@ public class UpmsSystemController extends BaseController {
@RequiresPermissions("upms:system:create") @RequiresPermissions("upms:system:create")
@RequestMapping(value = "/create", method = RequestMethod.GET) @RequestMapping(value = "/create", method = RequestMethod.GET)
public String create() { public String create() {
return "/jsp/manage/system/create"; return "/manage/system/create.jsp";
} }
@ApiOperation(value = "新增系统") @ApiOperation(value = "新增系统")
@ -111,7 +111,7 @@ public class UpmsSystemController extends BaseController {
public String update(@PathVariable("id") int id, ModelMap modelMap) { public String update(@PathVariable("id") int id, ModelMap modelMap) {
UpmsSystem system = upmsSystemService.selectByPrimaryKey(id); UpmsSystem system = upmsSystemService.selectByPrimaryKey(id);
modelMap.put("system", system); modelMap.put("system", system);
return "/jsp/manage/system/update"; return "/manage/system/update.jsp";
} }
@ApiOperation(value = "修改系统") @ApiOperation(value = "修改系统")

View File

@ -62,7 +62,7 @@ public class UpmsUserController extends BaseController {
@RequiresPermissions("upms:user:read") @RequiresPermissions("upms:user:read")
@RequestMapping(value = "/index", method = RequestMethod.GET) @RequestMapping(value = "/index", method = RequestMethod.GET)
public String index() { public String index() {
return "/jsp/manage/user/index"; return "/manage/user/index.jsp";
} }
@ApiOperation(value = "用户组织") @ApiOperation(value = "用户组织")
@ -78,7 +78,7 @@ public class UpmsUserController extends BaseController {
List<UpmsUserOrganization> upmsUserOrganizations = upmsUserOrganizationService.selectByExample(upmsUserOrganizationExample); List<UpmsUserOrganization> upmsUserOrganizations = upmsUserOrganizationService.selectByExample(upmsUserOrganizationExample);
modelMap.put("upmsOrganizations", upmsOrganizations); modelMap.put("upmsOrganizations", upmsOrganizations);
modelMap.put("upmsUserOrganizations", upmsUserOrganizations); modelMap.put("upmsUserOrganizations", upmsUserOrganizations);
return "/jsp/manage/user/organization"; return "/manage/user/organization.jsp";
} }
@ApiOperation(value = "用户组织") @ApiOperation(value = "用户组织")
@ -120,7 +120,7 @@ public class UpmsUserController extends BaseController {
List<UpmsUserRole> upmsUserRoles = upmsUserRoleService.selectByExample(upmsUserRoleExample); List<UpmsUserRole> upmsUserRoles = upmsUserRoleService.selectByExample(upmsUserRoleExample);
modelMap.put("upmsRoles", upmsRoles); modelMap.put("upmsRoles", upmsRoles);
modelMap.put("upmsUserRoles", upmsUserRoles); modelMap.put("upmsUserRoles", upmsUserRoles);
return "/jsp/manage/user/role"; return "/manage/user/role.jsp";
} }
@ApiOperation(value = "用户角色") @ApiOperation(value = "用户角色")
@ -176,7 +176,7 @@ public class UpmsUserController extends BaseController {
@RequiresPermissions("upms:user:create") @RequiresPermissions("upms:user:create")
@RequestMapping(value = "/create", method = RequestMethod.GET) @RequestMapping(value = "/create", method = RequestMethod.GET)
public String create() { public String create() {
return "/jsp/manage/user/create"; return "/manage/user/create.jsp";
} }
@ApiOperation(value = "新增用户") @ApiOperation(value = "新增用户")
@ -217,7 +217,7 @@ public class UpmsUserController extends BaseController {
public String update(@PathVariable("id") int id, ModelMap modelMap) { public String update(@PathVariable("id") int id, ModelMap modelMap) {
UpmsUser user = upmsUserService.selectByPrimaryKey(id); UpmsUser user = upmsUserService.selectByPrimaryKey(id);
modelMap.put("user", user); modelMap.put("user", user);
return "/jsp/manage/user/update"; return "/manage/user/update.jsp";
} }
@ApiOperation(value = "修改用户") @ApiOperation(value = "修改用户")

View File

@ -9,7 +9,7 @@
http://www.springframework.org/schema/mvc/spring-mvc.xsd"> http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<!-- 根目录'/'对应页面 --> <!-- 根目录'/'对应页面 -->
<mvc:view-controller path="/" view-name="/jsp/index"/> <mvc:view-controller path="/" view-name="/index.jsp"/>
<!-- 拦截器 --> <!-- 拦截器 -->
<mvc:interceptors> <mvc:interceptors>