Category : springboot

Order This article mainly studies webfluxtAgProvider of WebFlux. WebFluxTagsProvider spring-boot-actuator-2.1.5.RELEASE-sources.jar! /org/springframework/boot/actuate/metrics/web/reactive/server/WebFluxTagsProvider.java @FunctionalInterface public interface WebFluxTagsProvider { /** * Provides tags to be associated with metrics for the given {@code exchange}. * @param exchange the exchange * @param ex the current exception (may be {@code null}) * @return tags to associate with metrics for the request ..

Read more

Order This article mainly studies the ErrorWebFluxAutoConfiguration of spring boot. ErrorWebFluxAutoConfiguration spring-boot-autoconfigure-2.1.5.RELEASE-sources.jar! /org/springframework/boot/autoconfigure/web/reactive/error/ErrorWebFluxAutoConfiguration.java @Configuration @ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE) @ConditionalOnClass(WebFluxConfigurer.class) @AutoConfigureBefore(WebFluxAutoConfiguration.class) @EnableConfigurationProperties({ ServerProperties.class, ResourceProperties.class }) public class ErrorWebFluxAutoConfiguration { private final ServerProperties serverProperties; private final ApplicationContext applicationContext; private final ResourceProperties resourceProperties; private final List<ViewResolver> viewResolvers; private final ServerCodecConfigurer serverCodecConfigurer; public ErrorWebFluxAutoConfiguration(ServerProperties serverProperties, ResourceProperties resourceProperties, ObjectProvider<ViewResolver> viewResolversProvider, ServerCodecConfigurer ..

Read more

In spring boot, a lot of complicated configurations in spring’s previous projects are abandoned and followedContract is greater than configurationBy default configuration, it greatly reduces the complexity of project construction. Also in spring boot, the use of a large number of annotations makes the code look more concise and improves the efficiency of development. These ..

Read more

Introduction Recently, Yixin Open Source Microservice TASK Scheduling Platform SIA-TASK, SIA-TASK belongs to a distributed task scheduling platform. It is simple and convenient to use and easy to start. After the SIA-TASK task scheduling platform is deployed and built, the JOB is configured to schedule after task is written, thus realizing the whole scheduling process. ..

Read more

Mybatis series SpringBoot integration mybatis Analysis and loading of mybatis statement How does mybatis generate its implementation class based on mapper interface Mapper of mybatis returns map result set Assembly of mybatis results I. usemybatis-spring-boot-starter 1. Add Dependencies <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.0.0</version> </dependency> 2. Import the specified sql (application.properties) spring.datasource.schema=import.sql 3. annotation form @SpringBootApplication @MapperScan(“sample.mybatis.mapper”) ..

Read more

Order This article mainly tells the origin of spring boot, namely the background, original intention, present situation and the prospect of the future of other births. Background In a very early age, J2EE was still the king standard for java enterprise applications, and EJB was popular. Later, a musicologist named Rod Johnson wrote the book ..

Read more

SpringBoot configuration property series MVC for SpringBoot configuration attributes Server for SpringBoot configuration properties DataSource for SpringBoot configuration properties SpringBoot configuration property NOSQL MQ for SpringBoot configuration properties Security for SpringBoot configuration properties Migration of SpringBoot configuration properties SpringBoot configuration properties other In addition, I attach some personal articles about springboot. SpringBoot past lives SpringBoot ..

Read more

SpringBoot configuration property series MVC for SpringBoot configuration attributes Server for SpringBoot configuration properties DataSource for SpringBoot configuration properties SpringBoot configuration property NOSQL MQ for SpringBoot configuration properties Security for SpringBoot configuration properties Migration of SpringBoot configuration properties SpringBoot configuration properties other In addition, I attach some personal articles about springboot. SpringBoot past lives SpringBoot ..

Read more

SpringBoot configuration property series MVC for SpringBoot configuration attributes Server for SpringBoot configuration properties DataSource for SpringBoot configuration properties SpringBoot configuration property NOSQL MQ for SpringBoot configuration properties Security for SpringBoot configuration properties Migration of SpringBoot configuration properties SpringBoot configuration properties other In addition, I attach some personal articles about springboot. SpringBoot past lives SpringBoot ..

Read more

SpringBoot configuration property series MVC for SpringBoot configuration attributes Server for SpringBoot configuration properties DataSource for SpringBoot configuration properties SpringBoot configuration property NOSQL MQ for SpringBoot configuration properties Security for SpringBoot configuration properties Migration of SpringBoot configuration properties SpringBoot configuration properties other In addition, I attach some personal articles about springboot. SpringBoot past lives SpringBoot ..

Read more

SpringBoot configuration property series MVC for SpringBoot configuration attributes Server for SpringBoot configuration properties DataSource for SpringBoot configuration properties SpringBoot configuration property NOSQL MQ for SpringBoot configuration properties Security for SpringBoot configuration properties Migration of SpringBoot configuration properties SpringBoot configuration properties other In addition, I attach some personal articles about springboot. SpringBoot past lives SpringBoot ..

Read more

Order SpringBoot’s starter is mainly used to simplify dependencies. This article is mainly divided into two parts, one is to list some starter’s dependencies, the other is to teach you to write a starter yourself. Part of starters’ Dependence Starter(Group ID: org.springframework.boot) Delivery depends on spring-boot-starter-log4j2 ■ org.apache.logging.log4j:log4j-slf4j-impl■ org.apache.logging.log4j:log4j-api■ org.apache.logging.log4j:log4j-core■ org.slf4j:jcl-over-slf4j■ org.slf4j:jul-to-slf4j spring-boot-starter-logging ■ ch.qos.logback:logback-classic■ ..

Read more