Gateway error Unable to start ServletWebServerApplicationContext due to missing ServletWebServer

Problem error: Error 1: org.springframework.beans.factory.support.BeanDefinitionOverrideException: Invalid bean definition with name ‘conversionServicePostProcessor’ defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Cannot register bean definition [Root bean: class [org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration]; scope=; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=conversionServicePostProcessor; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]] for bean \ ‘conversionServicePostProcessor’: There is already [Root bean: class [org.springframework.security.config.annotation.web.reactive.WebFluxSecurityConfiguration]; scope=; abstract=false; […]

org.springframework.context.ApplicationContextException: Unable to start ServletWe

D:\jdk15\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:55457,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring .output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dfile.encoding=UTF-8 -classpath “G:\projects\Server\guigu-ssyx-parent\service\service-acl\target\classes;D:\Maven\org\springframework\boot\spring- boot-starter-web\2.3.6.RELEASE\spring-boot-starter-web-2.3.6.RELEASE.jar;D:\Maven\org\springframework\boot\spring-boot- starter\2.3.6.RELEASE\spring-boot-starter-2.3.6.RELEASE.jar;D:\Maven\org\springframework\boot\spring-boot-starter-logging\2.3 .6.RELEASE\spring-boot-starter-logging-2.3.6.RELEASE.jar;D:\Maven\ch\qos\logback\logback-classic\1.2.3\logback- classic-1.2.3.jar;D:\Maven\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\Maven\ \org\apache\logging\log4j\log4j-to-slf4j\2.13.3\log4j-to-slf4j-2.13.3.jar;D:\Maven\org\apache\ logging\log4j\log4j-api\2.13.3\log4j-api-2.13.3.jar;D:\Maven\org\slf4j\jul-to-slf4j\1.7.30\ \jul-to-slf4j-1.7.30.jar;D:\Maven\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar; D:\Maven\org\springframework\spring-core\5.2.11.RELEASE\spring-core-5.2.11.RELEASE.jar;D:\Maven\org\springframework\ spring-jcl\5.2.11.RELEASE\spring-jcl-5.2.11.RELEASE.jar;D:\Maven\org\yaml\snakeyaml\1.26\snakeyaml-1.26.jar;D :\Maven\org\springframework\boot\spring-boot-starter-json\2.3.6.RELEASE\spring-boot-starter-json-2.3.6.RELEASE.jar;D:\ \Maven\com\fasterxml\jackson\core\jackson-databind\2.11.3\jackson-databind-2.11.3.jar;D:\Maven\com\fasterxml\jackson \core\jackson-annotations\2.11.3\jackson-annotations-2.11.3.jar;D:\Maven\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\ \2.11.3\jackson-datatype-jdk8-2.11.3.jar;D:\Maven\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.11.3\jackson -datatype-jsr310-2.11.3.jar;D:\Maven\com\fasterxml\jackson\module\jackson-module-parameter-names\2.11.3\jackson-module-parameter- names-2.11.3.jar;D:\Maven\org\springframework\boot\spring-boot-starter-tomcat\2.3.6.RELEASE\spring-boot-starter-tomcat-2.3. 6.RELEASE.jar;D:\Maven\org\apache\tomcat\embed\tomcat-embed-core\9.0.39\tomcat-embed-core-9.0.39.jar;D :\Maven\org\glassfish\jakarta.el\3.0.3\jakarta.el-3.0.3.jar;D:\Maven\org\apache\tomcat\embed\ \tomcat-embed-websocket\9.0.39\tomcat-embed-websocket-9.0.39.jar;D:\Maven\org\springframework\spring-web\5.2.11.RELEASE\ spring-web-5.2.11.RELEASE.jar;D:\Maven\org\springframework\spring-beans\5.2.11.RELEASE\spring-beans-5.2.11.RELEASE.jar;D :\Maven\org\springframework\spring-webmvc\5.2.11.RELEASE\spring-webmvc-5.2.11.RELEASE.jar;D:\Maven\org\springframework\spring -aop\5.2.11.RELEASE\spring-aop-5.2.11.RELEASE.jar;D:\Maven\org\springframework\spring-context\5.2.11.RELEASE\spring- context-5.2.11.RELEASE.jar;D:\Maven\org\springframework\spring-expression\5.2.11.RELEASE\spring-expression-5.2.11.RELEASE.jar;G:\ \projects\Server\guigu-ssyx-parent\common\service-util\target\classes;D:\Maven\org\apache\httpcomponents\httpclient\4.5.1\ \httpclient-4.5.1.jar;D:\Maven\org\apache\httpcomponents\httpcore\4.4.13\httpcore-4.4.13.jar;D:\Maven\commons- logging\commons-logging\1.2\commons-logging-1.2.jar;D:\Maven\commons-codec\commons-codec\1.14\commons-codec-1.14.jar;D:\ \Maven\io\jsonwebtoken\jjwt\0.7.0\jjwt-0.7.0.jar;D:\Maven\joda-time\joda-time\2.10.1\joda- time-2.10.1.jar;D:\Maven\org\springframework\boot\spring-boot-starter-data-redis\2.3.6.RELEASE\spring-boot-starter-data- redis-2.3.6.RELEASE.jar;D:\Maven\org\springframework\data\spring-data-redis\2.3.5.RELEASE\spring-data-redis-2.3.5. RELEASE.jar;D:\Maven\org\springframework\data\spring-data-keyvalue\2.3.5.RELEASE\spring-data-keyvalue-2.3.5.RELEASE.jar;D: \Maven\org\springframework\data\spring-data-commons\2.3.5.RELEASE\spring-data-commons-2.3.5.RELEASE.jar;D:\Maven\org \springframework\spring-tx\5.2.11.RELEASE\spring-tx-5.2.11.RELEASE.jar;D:\Maven\org\springframework\spring-oxm\5.2.11 .RELEASE\spring-oxm-5.2.11.RELEASE.jar;D:\Maven\org\springframework\spring-context-support\5.2.11.RELEASE\spring-context-support-5.2 .11.RELEASE.jar;D:\Maven\io\lettuce\lettuce-core\5.3.5.RELEASE\lettuce-core-5.3.5.RELEASE.jar;D:\Maven\ \org\apache\commons\commons-pool2\2.8.1\commons-pool2-2.8.1.jar;D:\Maven\org\redisson\redisson\3.11.2\ \redisson-3.11.2.jar;D:\Maven\io\\ etty\\ etty-common\4.1.54.Final\\ etty-common-4.1.54.Final.jar;D:\ Maven\io\\ etty\\ etty-codec\4.1.54.Final\\ etty-codec-4.1.54.Final.jar;D:\Maven\io\\ […]

Springboot extension point series_ApplicationContextAwareProcessor

Features ApplicationContextAwareProcessor itself is not an extension point, but implements BeanPostProcessor and implements postProcessBeforeInitialization(), so there is no need to implement it, but it contains the execution timing of the following 6 interfaces. The functions of these interfaces are: : 1. EnvironmentAware: Used to obtain Environment. Environment can obtain all parameters in the system. In […]

[Framework Source Code 05] Spring Source Code-ApplicationContext

Spring source code-ApplicationContext The previous configuration of IoC, DI, AOP and Bean was manually written. By the end of the application context processing, the core concepts related to Spring should be relatively clear. Next, let’s take a look at how the core components are implemented in the Spring source code. 1. ApplicationContext What exactly is […]

Springboot extension point series_ApplicationContextInitializer

1. Functions of ApplicationContextInitializer At the beginning of Spring container initialization, all implementations of the ApplicationContextInitializer interface will be instantiated in the class; Before the Spring container is refreshed, the org.springframework.context.ApplicationContextInitializer#initialize method of all implementation classes will be called. The formal parameter type of the initialize method is ConfigurableApplicationContext, so it can be considered that […]

In-depth Spring principles-1.The difference between BeanFactory and ApplicationContext

About the author: Hello everyone, I am Tudou Ni who loves cheese. I am a Java contestant in the 24th class of school admissions. Nice to meet you all. Series of columns: Spring source code, JUC source code If you feel that the blogger’s article is not bad, please support the blogger three times in […]

# Solve Error creating bean with name dataSource defined in class path resource [applicationContext

Solution: Error creating bean with name dataSource’ defined in class path resource [applicationContext.xml] 1. The error log is as follows: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in class path resource [applicationContext.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory. BeanCreationException: Error creating bean with name ‘org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0’: Initialization of bean failed; nested […]

How ApplicationContextAware implements automatic injection of ApplicationContext

Purpose Injecting ApplicationContext into the bean through the ApplicationContextAware interface mainly has the following purposes: Obtain other beans in the Spring container: Sometimes, we may need to obtain other beans in the Spring container in a bean. This can be achieved by injecting ApplicationContext. Publish events: ApplicationContext provides the publishEvent method, which can be used […]

Error starting ApplicationContext. To display the conditions report re-run your application Troubleshooting

The jar package failed to start the project, and an error was reported: Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled. Error troubleshooting and resolution; Regarding this error, there are many reasons for the error. When encountering it for the first time, you need to read the error log […]