![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring boot
白礼军
这个作者很懒,什么都没留下…
展开
-
Springboot项目配置Mybatis二级缓存
什么是缓存?简单来讲,缓存就是存储在缓冲区里的内容,或者可以理解为存在内存中的内容。用户可以将经常查询的内容放到缓存中,再次使用时直接从缓存中取值,而不需要再查询数据库。这样做的优点是响应迅速,减少了系统资源(网络资源、CPU资源等)开销;缺点是需要占用内存资源,服务器一旦关机,缓存就会丢失,重启后需要重新将写一遍数据到内存。Mybatis的缓存Mybatis的缓存分为一级缓存和二级缓存。一级缓存是默认开启的,二级缓存需要手动开启。一级缓存是SqlSession级别的缓存,作用域是一个SqlSess原创 2020-08-12 18:34:57 · 1512 阅读 · 0 评论 -
springboot整合rabbitmq实例
springboot整合rabbitmq实例工程目录结构1.pom文件<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...原创 2019-10-31 10:18:21 · 937 阅读 · 4 评论 -
SpringBoot 在IDEA中实现热部署
第一步:具体步骤:打开顶部工具栏 File -> Settings -> Default Settings -> Build -> Compiler 然后勾选 Build project automatically第二步:具体步骤:同时按住 Ctrl + Shift + Alt + / 然后进入Registry ,勾选自动编译并调整延时参数compiler.aut...原创 2019-07-07 21:59:31 · 337 阅读 · 0 评论 -
springboot 使用第三方的json解析
1、我们需要在pom.xml中引入相应的依赖; <!-- 添加fastjson 依赖包. --> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <vers...原创 2019-07-07 21:45:15 · 272 阅读 · 0 评论 -
Spring Boot 面试题
本文转自:https://blog.csdn.net/zl1zl2zl3/article/details/837156331、什么是 Spring Boot?Spring Boot 是 Spring 开源组织下的子项目,是 Spring 组件一站式解决方案,主要是简化了使用 Spring 的难度,简省了繁重的配置,提供了各种启动器,开发者能快速上手。更多 Spring Boot 详细介绍请看...转载 2019-07-20 21:35:19 · 68 阅读 · 0 评论 -
Springboot属性注入方法
springboot三种常见的属性注入方式第一种:@Component+@Value注解的形式来进行属性注入首先都需要在application.properties文件写入配置信息jdbc.driverClassName=com.mysql.jdbc.Driverjdbc.url=jdbc:mysql://localhost:3306/testjdbc.username=rootjdb...原创 2019-07-21 22:10:36 · 299 阅读 · 0 评论 -
解决Mysql8 报错:ERROR 1193 (HY000): Unknown system variable 'tx_isolation'
报错:Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class iscom.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading of the driver class...原创 2019-09-04 16:56:52 · 2620 阅读 · 0 评论 -
用pagehelper和通用mapper正确处理分页查询的用法
1.controller层/** * 分页查询品牌 * @param page * @param rows * @param sortBy * @param desc * @param key * @return */@ApiOperation("分页查询品牌")@ApiImplicitParams({ @ApiImplicitParam(name = "pa...原创 2019-09-21 15:09:53 · 876 阅读 · 0 评论