Spring Cloud Gateway Series: Routing Assertion Factory

Article directory 1. After routing assertion factory configuration API style 2. Before routing assertion factory configuration API style 3. Between routing assertion factory configuration API style 4. Cookie routing assertion factory configuration API style 5. Header routing assertion factory configuration API style 6. Host routing assertion factory configuration API style 7. Method routing assertion factory […]

If the new Feign interface is started according to the microservice, an error will be reported: org.springframework.beans.factory.UnsatisfiedDependencyException:

Startup error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘jgEntInfoController’: Unsatisfied dependency expressed through field ‘remoteJgEntInfoService’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘ com.supervise.system.api.RemoteJgEntInfoService’: Unexpected exception during bean creation; nested exception is java.lang.IllegalStateException: No fallbackFactory instance of type class com.supervise.system.api.factory.RemoteJgEntInfoFallbackFactory found for feign client remoteJgEntInfoService question: rg.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean named ‘jgEntInfoController’: Dependency […]

jdbc data source (DruidDataSourceFactory) connection pool – druid

<dependencies> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.28</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.2.16</version> </dependency> </dependencies> 1. Druid data source connection pool technology package com.csdn.jdbc; import com.alibaba.druid.pool.DruidDataSource; import com.alibaba.druid.pool.DruidPooledConnection; import java.sql.SQLException; // Demonstrate data source connection pool druid Druid data source connection pool technology public class DataSourceConnectPool { public static void main(String[] args) throws SQLException { DruidDataSource dataSource […]

[Source code analysis] Spring source code interpretation-beanFactory and Bean’s post-processor process

In the previous article, we introduced in detail how spring successfully created beanfactory by loading the xml configuration file. Following the core process, we continue to talk about the post-processing process of beanFactory and Bean. //Template method left to subclasses, allowing subclasses to continue to perform some processing on the factory; Allows post-processing of the […]

org.springframework.beans.factory.UnsatisfiedDependencyException Error creating bean with name class

Someone said they wanted to see: org.springframework.beans.factory.UnsatisfiedDependencyException exception solution, so today, he is here! ! ! ! When you first started working on SpringBoot, you were high-spirited and unmotivated. With the great goal of abandoning the cumbersome configuration of traditional MVC, you eagerly embraced the SpringBoot framework model because you know the core of springboot: […]

Spring – BeanFactoryAware extension interface

Article directory Pre org.springframework.beans.factory.BeanFactoryAware Extension point description Aware interface Execution timing and order of Spring’s built-in Aware interface Source code analysis (direct call) Source code analysis (BeanPostProcessor call execution sequence) Extension point example Pre Spring Boot – List of extension interfaces org.springframework.beans.factory.BeanFactoryAware package org.springframework.beans.factory; import org.springframework.beans.BeansException; /** * Interface to be implemented by beans that […]

The ultimate solution to buried logs–Golang+Gin+Sarama VS Java+SpringWebFlux+ReactorKafka

The ultimate solution to buried logs–Golang + Gin + Sarama VS Java + SpringWebFlux + ReactorKafka I have written several articles before about OpenResty + lua-kafka-client writing buried data to Kafka, as follows: Lua writes Nginx request data to Kafka – buried log solution Python scheduled task executes shell script to cut Nginx logs – […]