codecrucible

spring-boot-Micrometer+Prometheus

environment: micrometer 1.8.2 prometheus 0.14.1 spring-boot-actuator 2.6.6 Use Cases <!– Springbootstart upactuator,Dependencies will be introduced by default:micrometer-core –> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> <version>2.6.6</version> </dependency> <!– micrometerbridgingprometheusBag,Related dependencies will be introduced by default:io.prometheus:simpleclient –> <dependency> <groupId>io.micrometer</groupId> <artifactId>micrometer-registry-prometheus</artifactId> <version>1.8.2</version> </dependency> Timer Record the execution time of each task. The default time window for Doubi is 1 minute. If…

Read More

Spring WebFlux: Reactive Programming

In the field of software development, as the scale and complexity of Internet applications continue to increase, traditional programming models have gradually exposed some limitations, especially when faced with scenarios such as high concurrency and large-scale data flow processing. In order to meet these challenges, reactive programming (Reactive Programming) emerged as the times require. It…

Read More

What is Spring Boot? What are its advantages?

What is Spring Boot? What are its advantages? Spring Boot is a rapid development framework based on the Spring framework, which aims to simplify the development process and deployment process of Spring applications. Spring Boot provides automated configuration and a convention-over-configuration approach, allowing developers to focus on business logic without paying too much attention to…

Read More

Knife4j integrates springboot

References Integrated use of knife4j_knife4jconfiguration-CSDN Blog SpringBoot integrates knife4j_knife4j-spring-boot-starter-CSDN blog Introduce maven <!–introduceKnife4jofficialstartBag,This guide selectsSpring BootVersion<3.0,Developers need to pay attention–> <dependency> <groupId>com.github.xiaoymin</groupId> <artifactId>knife4j-openapi2-spring-boot-starter</artifactId> <version>4.4.0</version> </dependency> Configure Knife4jConfiguration @Configuration @EnableSwagger2WebMvc public class Knife4jConfiguration { @Bean(value = “dockerBean”) public Docket dockerBean() { //designated useSwagger2specification Docket docket=new Docket(DocumentationType.SWAGGER_2) .apiInfo(new ApiInfoBuilder() //Description field supportMarkdowngrammar .description(“# Knife4j RESTful APIs”) .termsOfServiceUrl(“https://doc.xiaominfo.com/”)…

Read More

java_ Unable to access org.springframework.boot.SpringApplication error class file_ _C__Users_Yang_.m2_repository_org_spring

Table of contents Problem Description solution Problem Description During the learning process of Mybatis quick start, I want to test the following simple method. The result is an error: Error report details: java: Inaccessibleorg.springframework.boot.SpringApplication Wrong class file: /C:/Users/Yang/.m2/repository/org/springframework/boot/spring-boot/3.2.5/spring-boot-3.2.5.jar!/org/springframework/boot/SpringApplication.class Class file has wrong version 61.0, Should be 52.0 Please delete the file or ensure it is…

Read More

Consul detailed tutorial (SpringBoot case)

A brief introduction and basic use of Consul A brief introduction to Consul Consul is a Google open source service discovery and configuration management center service developed using the Go language. It has built-in service registration and discovery framework, distributed consistency protocol implementation, health check, Key/Value storage, and multi-data center solutions, and no longer needs…

Read More