资源简介
北大青鸟Y2 SSM --App信息管理系统(简单易懂)-----------------
代码片段和文件信息
package cn.lsp.appsys.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.jws.WebParam.Mode;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import com.alibaba.fastjson.JSON;
import cn.lsp.appsys.pojo.app_category;
import cn.lsp.appsys.pojo.app_info;
import cn.lsp.appsys.pojo.app_version;
import cn.lsp.appsys.pojo.backendUser;
import cn.lsp.appsys.pojo.dataDictionary;
import cn.lsp.appsys.service.BackendUserService;
import cn.lsp.appsys.service.DevUserService;
import cn.lsp.appsys.tools.PageSupport;
@Controller
@RequestMapping(“/Backend“)
public class BackendUserController {
private Logger logger = Logger.getLogger(BackendUserController.class);
@Resource(name=“backenduserservice“)
private BackendUserService service;
@Resource(name=“devuserservice“)
private DevUserService devService;
//后台用户登录页面
@RequestMapping(value=“/Login“method=RequestMethod.GET)
public String Login(){
return “jsp/backendlogin“;
}
//验证登录
@RequestMapping(value=“/goLogin“method=RequestMethod.POST)
public String goLogin(@RequestParam String userCode@RequestParam String userPasswordHttpSession sessionModel modelHttpServletRequest request){
logger.debug(“========>进入后台登录验证:“ + userCode + ““ + userPassword);
backendUser bkUser = service.Login(userCode userPassword);
if(null != bkUser){
session.setAttribute(“userSession“ bkUser);
logger.debug(“==========>后台用户登录成功!“);
return “jsp/backend/main“;
}
logger.debug(“==========>后台用户登录失败!“);
request.setAttribute(“error“ “用户名或密码错误!“);
return “jsp/backendlogin“;
}
//注销开发者页面
@RequestMapping(value=“/logout“method=RequestMethod.GET)
public String Logout(HttpSession session){
session.removeAttribute(“userSession“);
return “redirect:/Backend/Login“;
}
//ajax联动分类下拉框
@RequestMapping(value=“categorylevellist.json“method=RequestMethod.GET)
@ResponseBody
public object Classification(@RequestParam String pid){
logger.debug(“===========联动分类 pid=“+pid);
List categoriesList = null;
if(pid != null && pid != ““){
categoriesList = service.MainClassification(Integer.valueOf(pid));
}else{
categoriesList = service.OneClassification();
}
return JSON.toJSONString(categoriesList);
}
//APP审核页面
@RequestMapping(value=“/bkUserList“)
public String bkUserList(Model model
@RequestParam(value=“querySoftwareName“required=false)String querySoftwareName
@RequestParam(value=“queryFlatformId“required=false)Integer queryFlatformId
@RequestPar
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-09-08 08:53 AppInfoSystem\
文件 3224 2017-06-23 16:31 AppInfoSystem\.classpath
目录 0 2017-09-08 08:53 AppInfoSystem\.externalToolBuilders\
文件 548 2017-07-03 17:34 AppInfoSystem\.externalToolBuilders\org.eclipse.wst.jsdt.core.ja
文件 1281 2017-07-03 17:34 AppInfoSystem\.project
目录 0 2017-09-08 08:53 AppInfoSystem\.settings\
文件 503 2017-06-23 16:17 AppInfoSystem\.settings\.jsdtscope
文件 175 2017-07-05 21:26 AppInfoSystem\.settings\org.eclipse.core.resources.prefs
文件 364 2017-06-23 16:17 AppInfoSystem\.settings\org.eclipse.jdt.core.prefs
文件 573 2017-06-23 16:31 AppInfoSystem\.settings\org.eclipse.wst.common.component
文件 345 2017-06-23 16:17 AppInfoSystem\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2017-06-23 16:17 AppInfoSystem\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2017-06-23 16:17 AppInfoSystem\.settings\org.eclipse.wst.jsdt.ui.superType.name
目录 0 2017-09-08 08:53 AppInfoSystem\build\
目录 0 2017-09-08 08:53 AppInfoSystem\build\classes\
文件 3699 2017-06-23 16:37 AppInfoSystem\build\classes\applicationContext-mybatis.xm
目录 0 2017-09-08 08:53 AppInfoSystem\build\classes\cn\
目录 0 2017-09-08 08:53 AppInfoSystem\build\classes\cn\lsp\
目录 0 2017-09-08 08:53 AppInfoSystem\build\classes\cn\lsp\appsys\
目录 0 2017-09-08 08:53 AppInfoSystem\build\classes\cn\lsp\appsys\controller\
文件 8084 2017-07-31 20:52 AppInfoSystem\build\classes\cn\lsp\appsys\controller\BackendUserController.class
文件 23047 2017-07-31 20:52 AppInfoSystem\build\classes\cn\lsp\appsys\controller\DevUserController.class
文件 4350 2017-07-31 20:52 AppInfoSystem\build\classes\cn\lsp\appsys\controller\LoginController.class
目录 0 2017-09-08 08:53 AppInfoSystem\build\classes\cn\lsp\appsys\dao\
文件 1644 2017-07-31 20:52 AppInfoSystem\build\classes\cn\lsp\appsys\dao\BackendUserMapper.class
文件 3938 2017-07-05 16:23 AppInfoSystem\build\classes\cn\lsp\appsys\dao\BackendUserMapper.xm
文件 2614 2017-07-31 20:52 AppInfoSystem\build\classes\cn\lsp\appsys\dao\DevUserMapper.class
文件 10429 2017-07-06 09:38 AppInfoSystem\build\classes\cn\lsp\appsys\dao\DevUserMapper.xm
目录 0 2017-09-08 08:53 AppInfoSystem\build\classes\cn\lsp\appsys\interceptor\
文件 1761 2017-07-31 20:52 AppInfoSystem\build\classes\cn\lsp\appsys\interceptor\SysInterceptor.class
目录 0 2017-09-08 08:53 AppInfoSystem\build\classes\cn\lsp\appsys\pojo\
............此处省略193个文件信息
相关资源
- App研发录 完整版pdf
- Cloud Computing Principles Systems and Applica
- T.S.Rappaport_Wireless Communications Principl
- 安卓蓝牙app源码
- 社交类app源代码
- Estimation With Applications to Tracking and N
- CC2540/CC2541主从一体化透传源码支持串
- 易生活(二)-APP—安卓中评论功能的
- 记账app,功能较完整,附带登陆,注
- 蓝牙app开源代码,支持蓝牙4.2,5.0
- 软件工程 第八版高清完整英文版 So
- dzapp微信机器人独家全套教程
- Discrete Mathematics and Its Applications 8th
- 基于安卓的延安旅游项目app开发与设
- 功能相当完善的记事本app
- 太原科大天气APP毕业设计
- 轻读版新闻浏览app
- Theory and Applications of Digital Speech Proc
- Stochastic Differential Equations And Applicat
- 索尼微单app
- Xamarin多个运行appdemo
- 深度学习FlappyBird像素小鸟代码
- ionic的15个demo和一个真实项目
- 购物商城App+客户端+服务端+数据库
- MVC三层+Dapper+分页
- 法线贴图(Normal mapping)演示程序
- 分子模型-Molecular modelling:principles
- 蓝牙小车APP
- 15元-Power electronics devices circuits and
- love-master.zip
评论
共有 条评论