package com.sshdemo.app.demo.controller;
import com.sshdemo.app.demo.com.sshdemo.app.base.BaseController;
import com.sshdemo.app.demo.model.DemoEntity;
import com.sshdemo.app.demo.service.DemoService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
/**
* Created by ALEX on 2017/2/15.
*/
@Controller
public class DemoController extends BaseController<DemoService> {
@RequestMapping("test.html")
public ModelAndView test() {
DemoEntity de = baseService.selectByPrimaryKey(1);
ModelAndView mav = new ModelAndView("test");
mav.addObject("name", de.getName());
return mav;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
IDEA整合Spring+Springmvc+mybatis+maven详细教程 实例下载 (123个子文件)
DemoController.class 1KB
DemoController.class 1KB
DemoEntity.class 909B
DemoEntity.class 909B
DemoService.class 857B
DemoService.class 857B
BaseController.class 679B
BaseController.class 679B
BaseService.class 672B
BaseService.class 672B
DemoEntityMapper.class 439B
DemoEntityMapper.class 439B
ssh-demo.iml 4KB
aspectjweaver-1.8.7.jar 1.78MB
mybatis-3.4.1.jar 1.51MB
jackson-databind-2.6.3.jar 1.12MB
spring-context-4.3.3.RELEASE.jar 1.08MB
spring-core-4.3.3.RELEASE.jar 1.06MB
mysql-connector-java-5.1.39.jar 966KB
spring-webmvc-4.3.3.RELEASE.jar 892KB
spring-web-4.3.3.RELEASE.jar 794KB
spring-beans-4.3.3.RELEASE.jar 743KB
c3p0-0.9.1.1.jar 594KB
spring-test-4.3.3.RELEASE.jar 579KB
log4j-1.2.17.jar 478KB
commons-lang3-3.4.jar 424KB
spring-jdbc-4.3.3.RELEASE.jar 416KB
jstl-1.2.jar 405KB
standard-1.1.2.jar 384KB
spring-aop-4.3.3.RELEASE.jar 371KB
spring-tx-4.3.3.RELEASE.jar 261KB
spring-expression-4.3.3.RELEASE.jar 258KB
jackson-core-2.6.3.jar 253KB
aspectjrt-1.8.7.jar 114KB
javax.servlet-api-3.1.0.jar 94KB
commons-logging-1.2.jar 60KB
mybatis-spring-1.3.0.jar 52KB
jackson-annotations-2.6.0.jar 46KB
slf4j-api-1.7.22.jar 40KB
slf4j-log4j12-1.7.21.jar 10KB
DemoController.java 763B
DemoService.java 497B
DemoEntity.java 415B
DemoEntityMapper.java 409B
BaseService.java 328B
BaseController.java 249B
500.jsp 369B
404.jsp 369B
500.jsp 369B
404.jsp 369B
test.jsp 327B
test.jsp 327B
index.jsp 57B
index.jsp 57B
MANIFEST.MF 90B
log4j.properties 726B
log4j.properties 726B
log4j.properties 726B
jdbc.properties 335B
jdbc.properties 335B
jdbc.properties 335B
generator.properties 260B
generator.properties 260B
generator.properties 260B
sshdemo.sql 822B
workspace.xml 82KB
pom.xml 6KB
spring-mybatis.xml 4KB
spring-mybatis.xml 4KB
spring-mybatis.xml 4KB
ssh_demo_war_exploded.xml 3KB
web.xml 3KB
web.xml 3KB
spring-mvc.xml 2KB
spring-mvc.xml 2KB
spring-mvc.xml 2KB
DemoEntityMapper.xml 2KB
DemoEntityMapper.xml 2KB
misc.xml 2KB
generatorConfig.xml 2KB
generatorConfig.xml 2KB
generatorConfig.xml 2KB
0606eb04-ca2c-4632-9254-8a6849e8fc71.xml 2KB
dataSources.xml 891B
dataSources.local.xml 797B
Maven__org_springframework_spring_expression_4_3_3_RELEASE.xml 682B
Maven__com_fasterxml_jackson_core_jackson_annotations_2_6_0.xml 668B
Maven__org_springframework_spring_context_4_3_3_RELEASE.xml 661B
Maven__org_springframework_spring_webmvc_4_3_3_RELEASE.xml 654B
Maven__org_springframework_spring_beans_4_3_3_RELEASE.xml 647B
Maven__com_fasterxml_jackson_core_jackson_databind_2_6_3.xml 647B
Maven__org_springframework_spring_core_4_3_3_RELEASE.xml 640B
Maven__org_springframework_spring_test_4_3_3_RELEASE.xml 640B
Maven__org_springframework_spring_jdbc_4_3_3_RELEASE.xml 640B
Maven__org_springframework_spring_aop_4_3_3_RELEASE.xml 633B
Maven__org_springframework_spring_web_4_3_3_RELEASE.xml 633B
compiler.xml 628B
Maven__org_springframework_spring_tx_4_3_3_RELEASE.xml 626B
Maven__com_fasterxml_jackson_core_jackson_core_2_6_3.xml 619B
Maven__javax_servlet_javax_servlet_api_3_1_0.xml 602B
共 123 条
- 1
- 2
资源评论
- wangnan2012017-10-22下载错了,重新下载,应该挺有用的。
- syliangyu1232017-11-21可以启动起来,对于新手来说挺适合的
- 净坛望月2018-05-08下载后解压出问题,重新下载
- 若文2017-10-24虽然没有启动成功,不过学习了
- cainiao772017-09-20下载后解压为sshDemo,应该是写错了。例子挺简单。就是分太贵了。
胖胖のALEX
- 粉丝: 79
- 资源: 32
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功