摘要: 环境:springboot2.3.11 + MyBatis3.5.6 依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </depe 阅读全文
posted @ 2021-07-11 07:21 FastCoder 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 环境:springboot2.3.11 + prometheus1.6.7 + grafana7.5.7 什么是Prometheus Prometheus 是一个开源的服务监控系统和时间序列数据库。 prometheus存储的是时序数据,即按相同时序(相同名称和标签),以时间维度存储连续的数据的集合 阅读全文
posted @ 2021-07-11 07:16 FastCoder 阅读(809) 评论(0) 推荐(0) 编辑
摘要: 环境:springboot2.2.13.RELEASE + springcloud Hoxton.SR8 1 开启Feign功能 @SpringCloudApplication @ServletComponentScan @EnableFeignClients("com.pack.feign") p 阅读全文
posted @ 2021-07-11 07:13 FastCoder 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 环境:Spring5.3.3 Spring中是通过Advisor来创建代理对象的,如果当前Advisor将不会创建代理对象。不管是自定义的Advisor还是通过注解@Aspect实现的切面。我们粗略查看部分源码就知道了 代理对象的创建 1、开启AOP后会注册AnnotationAwareAspect 阅读全文
posted @ 2021-07-10 07:42 FastCoder 阅读(981) 评论(0) 推荐(0) 编辑
摘要: 环境:sprinboot2.3.12.RELEASE + uid-generator1.0.0 简介 UidGenerator是Java实现的, 基于Snowflake算法的唯一ID生成器。UidGenerator以组件形式工作在应用项目中, 支持自定义workerId位数和初始化策略, 从而适用于 阅读全文
posted @ 2021-07-09 13:48 FastCoder 阅读(802) 评论(0) 推荐(1) 编辑
摘要: Spring / Spring MVC / SpringBoot / SpringCloud 应用技巧,扩展点,源码解读来啦公众:Springboot实战案例锦集 阅读全文
posted @ 2021-07-09 09:28 FastCoder 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 环境:springcloud Hoxton.SR11 本节主要了解系统中的谓词与配置的路由信息是如何进行初始化关联生成路由对象的。每个谓词工厂中的Config对象又是如何被解析配置的。 所有的谓词工厂中的Config中属性值是如何被配置的。 在SpringCloud Gateway中的所有谓词工厂如 阅读全文
posted @ 2021-07-09 09:00 FastCoder 阅读(744) 评论(0) 推荐(0) 编辑
摘要: 环境:springboot2.3.9.RELEASE 1 Servlet注册 方式1: 在配置类(启动类)上添加@ServletComponentScan注解 @SpringBootApplication @ServletComponentScan public class SpringBootCo 阅读全文
posted @ 2021-07-09 08:56 FastCoder 阅读(984) 评论(0) 推荐(0) 编辑