原文:SpringBoot2.x入门:使用MyBatis

这是公众号 Throwable文摘 发布的第 篇原创文章,收录于专辑 SpringBoot .x入门 。 前提 这篇文章是 SpringBoot .x入门 专辑的第 篇文章,使用的SpringBoot版本为 . . .RELEASE,JDK版本为 . 。 SpringBoot项目引入MyBatis一般的套路是直接引入mybatis spring boot starter或者使用基于MyBatis ...

2020-07-19 16:32 0 1194 推荐指数:

查看详情

springboot2.x 使用redis (入门)

使用之前先简单介绍一下,redis和mongoDB这两个nosql的区别以及使用场景。 1. redis redis是一个分布式缓存、高性能的key-value数据库。支持存储的value类型包括string(字符串)、list(链表)、set(集合)、zset(sorted set ...

Wed Dec 11 06:14:00 CST 2019 2 204
springboot2.X整合mybatis

github地址:https://github.com/BenchChen/springboot 1) 创建springboot-maven项目,并修改pom文件 2 ) 在 src/main/resources 目录下新建配置文件 datasource.properties保存 ...

Tue Jul 24 00:22:00 CST 2018 0 8965
SpringBoot2.x入门使用CommandLineRunner钩子接口

前提 这篇文章是《SpringBoot2.x入门》专辑的第6篇文章,使用SpringBoot版本为2.3.1.RELEASE,JDK版本为1.8。 这篇文章主要简单聊聊钩子接口CommandLineRunner和ApplicationRunner,下文有时候统称两者为Runner ...

Tue Jul 14 08:23:00 CST 2020 0 929
springboot2.x优雅的整合mybatis

概述: 通过简单阅读mybatis源码从本质上了解springboot2.x如何优雅的集成mybatis; 1.引用包 2.引用包 在application.poperties中配置 3.编写mapper.xml 和 mapper接口 4.资源打包 在pom.xml ...

Thu Dec 19 04:26:00 CST 2019 0 237
SpringBoot2.x入门:引入web模块

前提 这篇文章是《SpringBoot2.x入门》专辑的第3篇文章,使用SpringBoot版本为2.3.1.RELEASE,JDK版本为1.8。 主要介绍SpringBoot的web模块引入,会相对详细地分析不同的Servlet容器(如Tomcat、Jetty等)的切换,以及该模块提供 ...

Sat Jul 04 21:09:00 CST 2020 0 1075
SpringBoot2.x入门:应用打包与启动

前提 这篇文章是《SpringBoot2.x入门》专辑的第5篇文章,使用SpringBoot版本为2.3.1.RELEASE,JDK版本为1.8。 这篇文章分析一个偏向于运维方面的内容:SpringBoot应用的打包与启动,分别会分析嵌入式Servlet容器和非嵌入式Servlet容器下 ...

Thu Jul 09 16:51:00 CST 2020 0 939
SpringBoot2.x入门:依赖管理

前提 这篇文章是《SpringBoot2.x入门》专辑的第1篇文章,使用SpringBoot版本为2.3.1.RELEASE,JDK版本为1.8。 主要梳理一下SpringBoot2.x的依赖关系和依赖的版本管理,依赖版本管理是开发和管理一个SpringBoot项目的前提 ...

Mon Jun 29 16:43:00 CST 2020 0 1531
Springboot2.x使用redis作为缓存

一、Springboot2.x关于配置redis作为缓存。 基本配置如下: (1)在application.properties文件中 (2)在pom.xml中 (3)自定义缓存管理器RedisCacheConfig (4)在service的实现 ...

Wed Mar 06 22:49:00 CST 2019 0 3441
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM