package com.itheima.redis; import com.itheima.pojo.User; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.fact ...
分类:
编程语言 时间:
2020-07-20 15:24:04
阅读次数:
76
...占位 xorriso -as mkisofs -o ../iso/oem-lenovo-uos-20-SP1-desktop-amd64.iso -no-pad \ -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \ -c isolinux/boot ...
分类:
其他好文 时间:
2020-07-19 23:39:29
阅读次数:
92
一,为什么要使用caffeine做本地缓存? 1,spring boot默认集成的进程内缓存在1.x时代是guava cache 在2.x时代更新成了caffeine, 功能上差别不大,但后者在性能上更胜一筹, 使用caffeine做本地缓存,取数据可以达到微秒的级别, 一次取数据用时经常不足1毫秒 ...
分类:
编程语言 时间:
2020-07-19 00:47:58
阅读次数:
94
一、新建工程 新建jansens-backup工程,这是一个独立运行于admin的服务模块,可以分开独立部署 二、添加依赖 在pom.xml文件中添加web、swagger、common依赖包。 <dependencies> <!-- spring boot --> <dependency> <gr ...
分类:
编程语言 时间:
2020-07-18 15:28:55
阅读次数:
110
To perform a cold boot (also called a "hard boot") means to start up a computer that is turned off. It is often used in contrast to a warm boot, which... ...
分类:
其他好文 时间:
2020-07-18 00:38:36
阅读次数:
268
kaptcha是一个开源的验证码实现库 1.添加依赖 <dependency> <groupId>com.github.axet</groupId> <artifactId>kaptcha</artifactId> <version>0.0.9</version> </dependency> 2.添 ...
分类:
编程语言 时间:
2020-07-17 19:41:27
阅读次数:
79
研究了一段时间Spring Boot了准备向Spring Cloud进发,公司架构和项目也全面拥抱了Spring Cloud。在使用了一段时间后发现Spring Cloud从技术架构上降低了对大型系统构建的要求,使我们以非常低的成本(技术或者硬件)搭建一套高效、分布式、容错的平台,但Spring C ...
分类:
编程语言 时间:
2020-07-17 16:17:35
阅读次数:
79
项目文件结构 编写测试代码 添加lombok的依赖 新建DemoController,用于提供RESTful接口。增加相关注解:@RestController,@RequestMapping("/demo"),@Slf4j 新建GetUserParam,接口传入参数实体。 新建DemoErrorEn ...
分类:
编程语言 时间:
2020-07-17 16:08:33
阅读次数:
64
之前学习Spring Boot有点囫囵吞枣的意味,没有细究这些注解间的差异。现在空下来重新回过头来阅读官方文档才对这几个注解有了重新的理解,专门写下来好供日后查询翻阅。 @Configuration 指示一个类声明了一个或多个@Bean方法,并且可以由Spring容器进行处理以在运行时为这些bean ...
分类:
编程语言 时间:
2020-07-17 13:53:57
阅读次数:
172
一、建一个项目,勾选相关需要的依赖; 二、 1) 导入redis 依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> < ...
分类:
编程语言 时间:
2020-07-17 09:20:07
阅读次数:
65