李振海
2017-11-07 15:59:56
原
spring boot+Spring+Spring MVC+Mybatis+Thymeleaf+Druid开发简单用户增删改查实例
简单的框架,Thymeleaf是3,0的 ,2.0的话标签必须闭合,3.0不需要,所以集成了3.0,数据连接池是阿里的Druid,监控界面是http://localhost:8080/druid/login.html 账号root ,密码123
这是userMapper.java 采用注解的方式
/** * Created by beyondLi on 2017/6/19. */ @Mapper // 声明是一个Mapper,与springbootApplication中的@MapperScan二选一写上即可 @Repository public interface UserMapper { @Insert("insert into user(username,age,time) values (#{username},#{age},#{time})") public void addUser(User user); @Select("select * from user where id = #{id}") public User selectUserById(int id); @Select("select * from user") public List<User> selectUserAll(); @Update("update user set username=#{userName},age=#{age},time=#{time} where id=#{id}") public void updateUser(User user); @Delete("delete from user where id=#{id}") public void deleteUser(int id); }
猜你喜欢
- SpringBoot用户登录注册简单实例
- Springboot + mybatis + layui实现的增删改查项目实例
- spring boot+mybatis+layui构建的用户增删改查实例,支持分页查询,模糊查询
- springboot2.0+mybaits-plus+redis+mysql+vue实现用户数据的增删改查简单实例
- Struts2实现的简单的用户增删改查实例
- s2sh实现用户登录的增删改查简单实例
- springboot2.x+mybatis-plus+jsp+jpa简单增删改查实例(仅供学习)
- spring boot集成swagger2实现用户的增删改查接口调用实例
- springboot+jpa+bootstrap+mysql用户登录+增删改查 运行环境为IDEA
- jquery easyUI结合java实现用户的增删改查的实例分享
- springboot入门demo实例
- mac下spring boot基础增删改查项目实例
请下载代码后再发表评论
文件名:demo.zip,文件大小:131.116K
下载
- /
- /aaa.sql
- /demo
- /demo/.classpath
- /demo/.gitignore
- /demo/.mvn
- /demo/.mvn/wrapper
- /demo/.mvn/wrapper/maven-wrapper.jar
- /demo/.mvn/wrapper/maven-wrapper.properties
- /demo/.mvn/wrapper
- /demo/.project
- /demo/.settings
- /demo/src
- /demo/src/main
- /demo/src/main/java
- /demo/src/main/java/com
- /demo/src/main/java/com/example
- /demo/src/main/java/com/example/demo
/demo/src/main/java/com/example/demo/DemoApplication.java
/demo/src/main/java/com/example/demo/DruidDataSourceConfiguration.java
/demo/src/main/java/com/example/demo/DruidStatViewServlet.java
- /demo/src/main/java/com/example/demo/controller
- /demo/src/main/java/com/example/demo/dao
- /demo/src/main/java/com/example/demo
- /demo/src/main/java/com/example
- /demo/src/main/java/com
- /demo/src/main/java
- /demo/src/main
![最代码相关代码源代码列表](https://static.zuidaima.com/resource/img/heart_ico.png)
- springboot demo小例子
- 原 SpringBoot入门整合开发java Web项目实例
- 证精 Springboot开发的精简博客系统
- 证 Springboot实现的图书商城系统
- 原证 springboot麦克风录制声音文件保存本地,可拓展ASR识别后返回
- 证精 SpringBoot开发非常美观的java博客系统(包含后台管理功能)
- 原证 springboot通过qq邮箱发送邮件
- 原 springboot入门之hello world(小白必看)
- 证 SpringBoot用户登录注册简单实例
- 证精 Springboot开发的客户关系管理系统SpringbootCRM
- 原 springboot入门demo实例
- 证 SpringBoot整合MyBatis实现记录孩子成长过程的博客系统
![最代码最近下载分享源代码列表](https://static.zuidaima.com/resource/img/heart_ico.png)
ma406805131 LV15
6月18日
oulingqiao LV13
2023年12月10日
王乐22222 LV10
2022年5月13日
lyws1986 LV17
2021年12月21日
尹恒yingying LV18
2021年10月25日
mudingc木钉 LV30
2021年7月7日
SYX__0707 LV6
2021年4月6日
zuidaima1560 LV3
2020年5月5日
sxxpliaolei LV1
2020年4月24日
mhaogg LV1
2020年4月19日
![最代码最近浏览分享源代码列表](https://static.zuidaima.com/resource/img/cattle_ico.png)
17380184110
6月19日
暂无贡献等级
fengst
6月18日
暂无贡献等级
ma406805131 LV15
6月18日
f22m1a2b2 LV17
5月31日
wwwww816 LV5
5月21日
shuangfu LV25
5月7日
1941549176 LV4
5月6日
vgjbvhkkkk
4月17日
暂无贡献等级
牛牛要爆炸了 LV2
1月17日
skook7 LV2
2023年12月14日