参考:https://www.yuque.com/leifengyang/springboot2 参考:https://www.bilibili.com/video/BV19K4y1L7MT? 配置文件 5.1 SpringBoot2核心技术-核心功能 5.2 文件类型 5.2.1 properties 同以前的properties用法 5.2.2 yaml YAML 是 "YAML Ain't
# SpringBoot2 快速入门 # 系统要求 Java8&兼容Java14 Maven3.3及以上 idea 2019.1.2 # maven设置 <mirrors> <mirror> HelloController { @RequestMapping("/hello") //映射请求 public String handle01(){ return "Hello,SpringBoot2
序 本文主要研究下springboot2的LoggersEndpoint 实例 GET /actuator/loggers { "levels": [ "OFF", "ERROR", "WARN
序 本文主要研究下springboot2的MappingsEndpoint MappingsEndpointAutoConfiguration spring-boot-actuator-autoconfigure RouterFunctionMappingDescriptionProvider、UrlHandlerMappingDescriptionProvider这三个来获取HandlerMappingDescriptionProvider 小结 springboot2
1、系统要求 Java 8 & 兼容java14 . Maven 3.3+ idea(最好2019版本以上) 1.1、maven设置 <mirrors> <mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/publi
依赖 <dependency> <groupId>org.springframework.kafka</groupId> <artifactId>spring-kafka</artifactId> </dependency> 配置 spring: kafka: bootstrap-servers: 外网ip:9092 producer: retries: 0 batch-size: 16384 buffer-memory: 33554432
# SpringBoot2 常用注解 @SpringBootApplication @EnableAutoConfiguration @ImportResource @Value @ConfigurationProperties
SpringBoot引入Swagger的maven库之前,需要先引入springboot-web的maven,否则没有效果。
序 本文主要研究下springboot2的httptrace HttpTraceAutoConfiguration spring-boot-actuator-autoconfigure-2.0.1.RELEASE-sources.jar
版权声明:本文为博主原创文章,未经博主允许不得转载。 本例实现方法 ApplicationRunner @Component @Order(10) // 执行顺序 public class InitSocket implements ApplicationRunner { @Override public void run(ApplicationArguments args) throws Exception { //TODO } } @Compo
开发环境:idea2018、springboot2.0.5 1、 POM添加微信开发支持 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.5.RELEASE</version> <relativePath/> </parent> <de
序 本文主要研究下如何在springboot2新增一个diskspace指标 disk health indicator DiskSpaceHealthIndicatorProperties spring-boot-actuator-autoconfigure measurements": [ { "statistic": "VALUE", "value": 96.99886102691765 } ], "availableTags": [] } 小结 springboot2
序 本文主要研究下springboot2的micrometer micrometer springboot2在spring-boot-actuator中引入了micrometer,对1.x的metrics Prometheus springboot2启用/actuator/prometheus端点,供Prometheus来抓取指标。 小结 springboot2的micrometer支持了tag/label,配合支持tag/label的监控系统,使得我们可以更加方便地对metrics进行多维度的统计查询及监控。
3、MyChannelHandlerPool.java类,channelHandler设置。
序 本文主要研究下springboot2的ScheduledTasksEndpoint 实例 注解形式 @Component public class ScheduleTask { @Scheduled
序 本文主要研究一下如何将springboot2的metrics输出到influxdb maven <dependency> <groupId>org.springframework.boot http.server.requests\"" { "results": [ { "statement_id": 0 } ] } 小结 springboot2
修订时间 修订内容 2019-03 SpringBoot2集成Druid配置v2,新增druid-spring-boot-starter部分,简化操作 2020-03 新增Druid JAVA Config
1、创建springboot2项目,省略; 2、pom.xml引用 <dependency> <groupId>org.apache.rocketmq</groupId
序 本文主要研究下springboot2自定义HttpTraceRepository Configuration @Configuration @ConditionalOnWebApplication
SpringBoot2 基础入门 SpringBoot 简介 JavaEE开发的一站式解决方案! SpringBoot2入门 环境约束 Java8 或以上 学习 Maven3.3 或以上 学习 本人使用的编辑器是: Idea2020 或其它编辑器,Spring官方的推荐的 STS maven设置 根据上面的 SpringBoot的特定得知SpringBoot的底层就是大量的 自动配置类 SpringBoot2 128个 详情查看 @EnableAutoConfiguration注解 自定义 自动配置