Service层单元测试 步骤一:添加 jar 包 <!--mybatis-plus--> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version ...
分类:
编程语言 时间:
2021-02-06 12:17:35
阅读次数:
0
Spring 复习 2.Spring AoP 本文启发自关于 Spring AOP (AspectJ) 你该知晓的一切_zejian的博客-CSDN博客_springaop 2.1 基本概念 2.1.1 存在问题 如果使用传统OOP的方式来对大量重复的代码进行管理,通常采用的是继承或抽取静态工厂方法 ...
分类:
编程语言 时间:
2021-02-06 12:09:51
阅读次数:
0
Spring常用注解 本文枚举一些常用的SpringBoot开发注解,希望能帮助读者在SpringBoot开发中正确地使用注解。 @Spring Application 主程序注解,spring框架的main函数自带注解。一般不需要开发人员操作,Spring Initializer会写好。 @Con ...
分类:
编程语言 时间:
2021-02-06 12:01:01
阅读次数:
0
SpringCloud(四):服务发现与Ribbon负载均衡详解 1 负载均衡及Ribbon 1.1 Ribbon是什么 Spring Cloud Ribbon 是基于Netflix Ribbon 实现的一套客户端负载均衡的工具。 简单的说,Ribbon 是 Netflix 发布的开源项目,主要功能 ...
分类:
编程语言 时间:
2021-02-06 11:59:48
阅读次数:
0
背景 接收到公司业务部门的开发反馈,应用在升级公司内部框架后,UAT(预生产)环境接口性能压测不达标。 升级前压测报告: 升级后压测报告: 在机器配置(1C4G)相同的情况下,吞吐量从原来的 53.9/s 下降到了 6.4/s,且 CPU 负载较高。 并且开发反馈从公司全链路监控系统 SkyWalk ...
分类:
编程语言 时间:
2021-02-06 11:53:37
阅读次数:
0
1、mysql数据库表结构 2、pom.xml依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> ...
分类:
数据库 时间:
2021-02-06 11:44:36
阅读次数:
0
在 Spring Tools 4 for Eclipse 中依次选择 File->New->Maven Project 完了上述操作之后,在 pom.xml 中添加 Spring Boot 的依赖,代码如下所示。 <parent> <groupId>org.springframework.boot< ...
分类:
编程语言 时间:
2021-02-06 11:43:13
阅读次数:
0
目标: 1. 什么是AOP, 什么是AspectJ 2. 什么是Spring AOP 3. Spring AOP注解版实现原理 4. Spring AOP切面原理解析 一. 认识AOP及其使用 详见博文1: 5.1 Spring5源码--Spring AOP源码分析一 二. AOP的特点 2.1 S ...
分类:
编程语言 时间:
2021-02-05 11:01:07
阅读次数:
0
SpringBoot actuator(自定义端点类) 1、编写自动端点类很简单,只需要在类前面使用@Endpoint注解 EndPoint中id 来表示url路径 2、使用@ReadOperation //显示监控指标 3、使用@WriteOperation //动态修改指标,以post方式修改 ...
分类:
编程语言 时间:
2021-02-05 10:47:22
阅读次数:
0
动态代理模板 /** * Description : * 公用这个类,自动生成代理类 * * @author : AirCL * Date : 2021/2/4 * Time : 20:27 */ public class ProxyInvocationHandler implements Invo ...
分类:
编程语言 时间:
2021-02-05 10:47:05
阅读次数:
0