springboot项目启动报错

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-05-11 08:55:38.327 ERROR 11512 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat

Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat

Caused by: java.lang.IllegalArgumentException: Unable to set initialisation parameters for filter due to null name and/or value. Name [loginUsername], Value [null]
大佬帮看看

非常高兴有机会回答你的问题

你问题中的错误已经很明确了,关键的信息是:

Caused by: java.lang.IllegalArgumentException: Unable to set initialisation parameters for filter due to null name and/or value. Name [loginUsername], Value [null]

就是不能初始化参数:loginUsername

你要查找到这个参数的设值,检查一下逻辑,然后给他初始化就好了

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-11-07 17:28:15.615 ERROR 20668 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration.themeResolver(WebMvcAutoConfiguration.java:486)

The following method did not exist:

org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration.themeResolver()Lorg/springframework/web/servlet/ThemeResolver;

The method's class, org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration, is available from the following locations:

jar:file:/D:/maven/repository/org/springframework/spring-webmvc/5.2.3.RELEASE/spring-webmvc-5.2.3.RELEASE.jar!/org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.class

The class hierarchy was loaded from the following locations:

org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration: file:/D:/maven/repository/org/springframework/spring-webmvc/5.2.3.RELEASE/spring-webmvc-5.2.3.RELEASE.jar
org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport: file:/D:/maven/repository/org/springframework/spring-webmvc/5.2.3.RELEASE/spring-webmvc-5.2.3.RELEASE.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration

Process finished with exit code 1