02 2022 档案

摘要:1 创建SpringApplication 保存部分信息 ClassUtils判定当前应用的类型,通常为Servlet Bootstrapper:初始启动引导器,去spring.factories文件中找Bootstrapper ApplicationContextInitializer:去spri 阅读全文
posted @ 2022-02-07 22:32 hunter-w 阅读(26) 评论(0) 推荐(0) 编辑
摘要:1 Profile功能 为了方便多环境适配,springboot简化了profile功能。 1.1 application-profile功能 默认配置文件 application.yaml,任何时候都会加载 指定环境配置文件 application-{env}.yaml 激活指定环境 配置文件激活 阅读全文
posted @ 2022-02-06 20:18 hunter-w 阅读(151) 评论(0) 推荐(0) 编辑
摘要:1 SpringBoot Actuator 1.1 简介 未来每一个微服务在云上部署以后,我们都需要对其进行监控、追踪、审计、控制等。SpringBoot就抽取了Actuator场景,使得我们每个微服务快速引用即可获得生产级别的应用监控、审计等功能。 <dependency> <groupId>or 阅读全文
posted @ 2022-02-04 21:35 hunter-w 阅读(80) 评论(0) 推荐(0) 编辑
摘要:1 Junit5 Spring Boot 2.2.0 版本开始引入 JUnit 5 作为单元测试默认库 作为最新版本的JUnit框架,JUnit5与之前版本的Junit框架有很大的不同。由三个不同子项目的几个不同模块组成。 JUnit 5 = JUnit Platform + JUnit Jupit 阅读全文
posted @ 2022-02-02 20:56 hunter-w 阅读(63) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示