package com.cn.eagle.controller;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;
import com.cn.base.PlatformBaseClass;
import com.cn.constant.enums.ENUM_THIRD_TYPE;
import com.cn.eagle.service.UserService;
import com.cn.entity.User;
@RestController
@RequestMapping("/user")
public class UserController extends PlatformBaseClass{
{
thirdType = ENUM_THIRD_TYPE.EAGLE;
}
@Autowired
private UserService userService;
@RequestMapping("/showUser")
public ModelAndView toIndex(HttpServletRequest request){
ModelAndView model = new ModelAndView();
logger.info("哈哈哈");
System.out.println(thirdType.getCode());
String label = ENUM_THIRD_TYPE.getValueByIdType("0");
System.out.println(label);
int userId = Integer.parseInt(request.getParameter("id"));
User user = this.userService.selectByPrimaryKey(userId);
model.addObject("user", user);
model.setViewName("eagle/showUser");
return model;
}
// @RequestMapping("/showUser")
// public Map<String, Object> toIndex(HttpServletRequest request){
// Map<String, Object> map = new HashMap<String, Object>();
// int userId = Integer.parseInt(request.getParameter("id"));
// User user = this.userService.getUserById(userId);
// map.put("v", user);
// return map;
// }
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
era_m.zip (57个子文件)
era_m
.project 2KB
logs
ssm.log 342KB
src
test
java
main
webapp
WEB-INF
jsp
eagle
showUser.jsp 1KB
classes
spring-mybatis.xml 3KB
spring-mvc.xml 3KB
web.xml 3KB
error.jsp 795B
index.jsp 829B
META-INF
MANIFEST.MF 39B
resources
ViewControllerRegistry.properties 29B
spring-mybatis.xml 3KB
jdbc.properties 291B
log4j.properties 928B
java
com
cn
constant
enums
ENUM_THIRD_TYPE.java 1KB
base
PlatformBaseClass.java 264B
util
WebMvcConfig.java 1KB
entity
User.java 817B
eagle
service
impl
UserServiceImpl.java 472B
UserService.java 150B
controller
UserController.java 2KB
dao
UserMapper.java 346B
mapping
UserMapper.xml 3KB
bo
UserBo.java 138B
impl
UserBoImpl.java 471B
target
generated-sources
annotations
m2e-jee
web-resources
META-INF
MANIFEST.MF 104B
maven
era_m
era_m
pom.properties 229B
pom.xml 7KB
classes
ViewControllerRegistry.properties 29B
spring-mybatis.xml 3KB
com
cn
constant
enums
ENUM_THIRD_TYPE.class 3KB
base
PlatformBaseClass.class 577B
util
WebMvcConfig.class 2KB
entity
User.class 1KB
eagle
service
UserService.class 197B
impl
UserServiceImpl.class 777B
controller
UserController.class 2KB
dao
UserMapper.class 381B
mapping
UserMapper.xml 3KB
bo
UserBo.class 182B
impl
UserBoImpl.class 758B
jdbc.properties 291B
log4j.properties 928B
test-classes
WebRoot
WEB-INF
classes
.settings
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.xsl.core.prefs 232B
org.eclipse.wst.common.project.facet.core.xml 450B
org.eclipse.m2e.core.prefs 90B
org.eclipse.wst.ws.service.policy.prefs 87B
com.genuitec.eclipse.core.prefs 101B
org.eclipse.jdt.core.prefs 430B
org.eclipse.wst.validation.prefs 463B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.project.facet.core.prefs.xml 161B
org.eclipse.core.resources.prefs 155B
org.eclipse.wst.common.component 581B
.jsdtscope 530B
pom.xml 7KB
.classpath 1KB
共 57 条
- 1
资源评论
BESTSK
- 粉丝: 97
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功