资源简介
基于spring+springmvc+hibernate的全注解开发,在与数据库打交道的过程中不需要写繁琐的配置文件,仅通过相关的注解即可。

代码片段和文件信息
package cn.lcan.action;
import cn.lcan.entity.Person;
import cn.lcan.service.IpersionServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.Date;
import java.util.UUID;
@Controller
public class PersionAction {
@Autowired
IpersionServer persionServer;
@RequestMapping(value=“/test“method={RequestMethod.GETRequestMethod.POST})
@ResponseBody
public String Test(){
System.out.println(“asfsadfsadfsda“);
return “success“;
}
@RequestMapping(value=“/save“method={RequestMethod.GETRequestMethod.POST})
@ResponseBody
public String savePersion(){
Person person = new Person();
person.setUsername(“xiaoming“);
person.setAddress(“hubei“);
person.setCreated(new Date());
person.setPhone(“1111111“);
person.setRemark(“3333“);
persionServer.savePerson(person);
return “保存成功“;
}
@RequestMapping(value=“/search“method={RequestMethod.GETRequestMethod.POST})
@ResponseBody
public String PersonName(){
Person person = persionServer.findById(“1“);
System.out.println(person.getUsername());
return person.getUsername();
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-08-12 18:04 SSH\
文件 10808 2018-08-12 17:23 SSH\pom.xm
目录 0 2018-08-12 09:48 SSH\src\
目录 0 2018-08-12 09:55 SSH\src\main\
目录 0 2018-08-12 10:05 SSH\src\main\java\
目录 0 2018-08-12 10:05 SSH\src\main\java\cn\
目录 0 2018-08-12 10:07 SSH\src\main\java\cn\lcan\
目录 0 2018-08-12 17:47 SSH\src\main\java\cn\lcan\action\
文件 1397 2018-08-12 17:47 SSH\src\main\java\cn\lcan\action\PersionAction.java
目录 0 2018-08-12 15:54 SSH\src\main\java\cn\lcan\dao\
文件 581 2018-08-12 15:54 SSH\src\main\java\cn\lcan\dao\PersonDao.java
目录 0 2018-08-12 17:47 SSH\src\main\java\cn\lcan\entity\
文件 1492 2018-08-12 17:47 SSH\src\main\java\cn\lcan\entity\Person.java
目录 0 2018-08-12 16:10 SSH\src\main\java\cn\lcan\service\
目录 0 2018-08-12 16:10 SSH\src\main\java\cn\lcan\service\impl\
文件 716 2018-08-12 16:10 SSH\src\main\java\cn\lcan\service\impl\PersionImpl.java
文件 177 2018-08-12 16:10 SSH\src\main\java\cn\lcan\service\IpersionServer.java
目录 0 2018-08-12 18:04 SSH\src\main\resources\
文件 633 2018-08-12 15:16 SSH\src\main\resources\jdbc.properties
文件 4583 2018-08-12 17:05 SSH\src\main\resources\portal-context.xm
文件 1543 2018-08-12 18:04 SSH\src\main\resources\springmvc.xm
目录 0 2018-08-12 16:15 SSH\src\main\webapp\
文件 139 2018-08-12 16:15 SSH\src\main\webapp\index.jsp
目录 0 2018-08-12 11:21 SSH\src\main\webapp\WEB-INF\
文件 2027 2018-08-12 11:21 SSH\src\main\webapp\WEB-INF\web.xm
- 上一篇:AdaBoost讲解
- 下一篇:ieee 33节点
相关资源
- SpringBoot+H2+mybatis-plus59130
- hibernate调用存储过程
- 基于J2EE物资出入库管理系统
- 基于SSM+CXF构建的RESTFul webservice
- 大数据中的云网络Cloud Networking for B
- Spring+MyBatis企业应用实战第一二版的源
- springboot+rabbitmq项目demo(亲测可正常运
- springboot整合RabbitMQ实现延时队列的两
- 关于Spring MVC项目maven中通过fileupload上
- Spring-Data-Redis2.0+Spring5
- 2017年-传智播客-张志君老师-SpringBoo
- springboot+mybatis整合实现注册登录
-
spring-fr
amework-5.0.2.RELEASE 源码包 - 基于web的图书馆运营系统
- springboot+webflux+mongodb+freemarker
- springboot整合activiti完整demo
- SpringBoot实战(第4版)清晰版.pdf.zip
- SpringBoot 中文文档
- springboot+jpa+thymeleaf实现增删改查分页
- es(elasticsearch)整合SpringCloudSpringBo
- Springboot日志开启SLF4J过程解析
- 原银在线信贷平台概要设计说明书v
- springcloud 微服务(全套视频)
- springCloud教学视频
- springboot全套教程2018年2.0版本
- 官网springboot项目
- Spring Boot中自定义注解结合AOP实现主备
- flowable整合Spring
- Spring Security架构以及源码详析
- SpringBoot+Mybatis+前后台隔离技术,完整
评论
共有 条评论