У меня возникла проблема с запуском приложения Java Spring Boot. Я получаю сообщение об ошибке ниже. Я считаю, что у меня есть все необходимые зависимости. Однако ошибка, похоже, связана с классом javax.servlet.Filter, который есть в моем файле pom.xml, но если у меня нет устаревшей версии, я не уверен, где находится моя проблема. .. После дальнейшего изучения проблема, похоже, заключается в том, что я использую Spring Security в своем проекте, а Spring Security пытается создать объект HttpSecurity для настройки фильтров безопасности, но не может найти необходимый javax.servlet.Filter класс. В м о е м п р о е к т е и с п о л ь з у е т с я J a v a 1 7 . < / p > < b r / > С о о б щ е н и е о б о ш и б к е : < / p > < b r / > < c o d e > / U s e r s / j o n a t h a n d a m e u s / L i b r a r y / J a v a / J a v a V i r t u a l M a c h i n e s / o p e n j d k - 2 1 . 0 . 1 / C o n t e n t s / H o m e / b i n / j a v a - j a v a a g e n t : / A p p l i c a t i o n s / I n t e l l i J I D E A C E . a p p / C o n t e n t s / l i b / i d e a _ r t . j a r = 6 4 5 2 9 : / A p p l i c a t i o n s / I n t e l l i J I D E A C E . a p p / C o n t e n t s / b i n - D f i l e . e n c o d i n g = U T F - 8 - D s u n . s t d o u t . e n c o d i n g = U T F - 8 - D s u n . s t d e r r . e n c o d i n g = U T F - 8 - c l a s s p a t h / U s e r s / j o n a t h a n d a m e u s / C o d e _ G i t H u b / J D T _ C l i e n t / J R _ P r o p e r t y _ M a n a g e m e n t / s e r v e r / J R P r o p e r t y M a n a g e m e n t / t a r g e t / c l a s s e s : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / o r g / s p r i n g f r a m e w o r k / b o o t / s p r i n g - b o o t - s t a r t e r - d a t a - j p a / 3 . 1 . 5 / s p r i n g - b o o t - s t a r t e r - d a t a - j p a - 3 . 1 . 5 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / o r g / s p r i n g f r a m e w o r k / b o o t / s p r i n g - b o o t - s t a r t e r - a o p / 3 . 1 . 5 / s p r i n g - b o o t - s t a r t e r - a o p - 3 . 1 . 5 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / o r g / a s p e c t j / a s p e c t j w e a v e r / 1 . 9 . 2 0 / a s p e c t j w e a v e r - 1 . 9 . 2 0 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / o r g / s p r i n g f r a m e w o r k / b o o t / s p r i n g - b o o t - s t a r t e r - j d b c / 3 . 1 . 5 / s p r i n g - b o o t - s t a r t e r - j d b c - 3 . 1 . 5 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / c o m / z a x x e r / H i k a r i C P / 5 . 0 . 1 / H i k a r i C P - 5 . 0 . 1 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / o r g / s p r i n g f r a m e w o r k / s p r i n g - j d b c / 6 . 0 . 1 3 / s p r i n g - j d b c - 6 . 0 . 1 3 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / o r g / h i b e r n a t e / o r m / h i b e r n a t e - c o r e / 6 . 2 . 1 3 . F i n a l / h i b e r n a t e - c o r e - 6 . 2 . 1 3 . F i n a l . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / j a k a r t a / p e r s i s t e n c e / j a k a r t a . p e r s i s t e n c e - a p i / 3 . 1 . 0 / j a k a r t a . p e r s i s t e n c e - a p i - 3 . 1 . 0 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / j a k a r t a / t r a n s a c t i o n / j a k a r t a . t r a n s a c t i o n - a p i / 2 . 0 . 1 / j a k a r t a . t r a n s a c t i o n - a p i - 2 . 0 . 1 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / o r g / j b o s s / l o g g i n g / j b o s s - l o g g i n g / 3 . 5 . 3 . F i n a l / j b o s s - l o g g i n g - 3 . 5 . 3 . F i n a l . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / o r g / h i b e r n a t e / c o m m o n / h i b e r n a t e - c o m m o n s - a n n o t a t i o n s / 6 . 0 . 6 . F i n a l / h i b e r n a t e - c o m m o n s - a n n o t a t i o n s - 6 . 0 . 6 . F i n a l . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / i o / s m a l l r y e / j a n d e x / 3 . 0 . 5 / j a n d e x - 3 . 0 . 5 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / c o m / f a s t e r x m l / c l a s s m a t e / 1 . 5 . 1 / c l a s s m a t e - 1 . 5 . 1 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / n e t / b y t e b u d d y / b y t e - b u d d y / 1 . 1 4 . 9 / b y t e - b u d d y - 1 . 1 4 . 9 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / o r g / g l a s s f i s h / j a x b / j a x b - r u n t i m e / 4 . 0 . 3 / j a x b - r u n t i m e - 4 . 0 . 3 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / o r g / g l a s s f i s h / j a x b / j a x b - c o r e / 4 . 0 . 3 / j a x b - c o r e - 4 . 0 . 3 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / o r g / e c l i p s e / a n g u s / a n g u s - a c t i v a t i o n / 2 . 0 . 1 / a n g u s - a c t i v a t i o n - 2 . 0 . 1 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / o r g / g l a s s f i s h / j a x b / t x w 2 / 4 . 0 . 3 / t x w 2 - 4 . 0 . 3 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / c o m / s u n / i s t a c k / i s t a c k - c o m m o n s - r u n t i m e / 4 . 1 . 2 / i s t a c k - c o m m o n s - r u n t i m e - 4 . 1 . 2 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / j a k a r t a / i n j e c t / j a k a r t a . i n j e c t - a p i / 2 . 0 . 1 / j a k a r t a . i n j e c t - a p i - 2 . 0 . 1 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / o r g / a n t l r / a n t l r 4 - r u n t i m e / 4 . 1 0 . 1 / a n t l r 4 - r u n t i m e - 4 . 1 0 . 1 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / o r g / s p r i n g f r a m e w o r k / d a t a / s p r i n g - d a t a - j p a / 3 . 1 . 5 / s p r i n g - d a t a - j p a - 3 . 1 . 5 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / o r g / s p r i n g f r a m e w o r k / d a t a / s p r i n g - d a t a - c o m m o n s / 3 . 1 . 5 / s p r i n g - d a t a - c o m m o n s - 3 . 1 . 5 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / o r g / s p r i n g f r a m e w o r k / s p r i n g - o r m / 6 . 0 . 1 3 / s p r i n g - o r m - 6 . 0 . 1 3 . j a r : / U s e r s / j o n a t h a n d a m e u s / . m 2 / r e p o s i t o r y / o r g / s p r i ngframework/spring-tx/6.0.13/spring-tx-6.0.13.jar:/Users/jonathandameus/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/jonathandameus/.m2/repository/org/slf4j/slf4j-api/2.0.9/slf4j-api-2.0.9.jar:/Users/jonathandameus/.m2/repository/org/springframework/spring-aspects/6.0.13/spring-aspects-6.0.13.jar:/Users/jonathandameus/.m2/repository/org/springframework/boot/spring-boot-starter-web/3.1.5/spring-boot-starter-web-3.1.5.jar:/Users/jonathandameus/.m2/repository/org/springframework/boot/spring-boot-starter/3.1.5/spring-boot-starter-3.1.5.jar:/Users/jonathandameus/.m2/repository/org/springframework/boot/spring-boot/3.1.5/spring-boot-3.1.5.jar:/Users/jonathandameus/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.1.5/spring-boot-autoconfigure-3.1.5.jar:/Users/jonathandameus/.m2/repository/org/springframework/boot/spring-boot-starter-logging/3.1.5/spring-boot-starter-logging-3.1.5.jar:/Users/jonathandameus/.m2/repository/ch/qos/logback/logback-classic/1.4.11/logback-classic-1.4.11.jar:/Users/jonathandameus/.m2/repository/ch/qos/logback/logback-core/1.4.11/logback-core-1.4.11.jar:/Users/jonathandameus/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.20.0/log4j-to-slf4j-2.20.0.jar:/Users/jonathandameus/.m2/repository/org/apache/logging/log4j/log4j-api/2.20.0/log4j-api-2.20.0.jar:/Users/jonathandameus/.m2/repository/org/slf4j/jul-to-slf4j/2.0.9/jul-to-slf4j-2.0.9.jar:/Users/jonathandameus/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar:/Users/jonathandameus/.m2/repository/org/springframework/boot/spring-boot-starter-json/3.1.5/spring-boot-starter-json-3.1.5.jar:/Users/jonathandameus/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.3/jackson-databind-2.15.3.jar:/Users/jonathandameus/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.3/jackson-annotations-2.15.3.jar:/Users/jonathandameus/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.3/jackson-core-2.15.3.jar:/Users/jonathandameus/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.3/jackson-datatype-jdk8-2.15.3.jar:/Users/jonathandameus/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.3/jackson-datatype-jsr310-2.15.3.jar:/Users/jonathandameus/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.3/jackson-module-parameter-names-2.15.3.jar:/Users/jonathandameus/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/3.1.5/spring-boot-starter-tomcat-3.1.5.jar:/Users/jonathandameus/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/10.1.15/tomcat-embed-core-10.1.15.jar:/Users/jonathandameus/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/10.1.15/tomcat-embed-el-10.1.15.jar:/Users/jonathandameus/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/10.1.15/tomcat-embed-websocket-10.1.15.jar:/Users/jonathandameus/.m2/repository/org/springframework/spring-web/6.0.13/spring-web-6.0.13.jar:/Users/jonathandameus/.m2/repository/io/micrometer/micrometer-observation/1.11.5/micrometer-observation-1.11.5.jar:/Users/jonathandameus/.m2/repository/io/micrometer/micrometer-commons/1.11.5/micrometer-commons-1.11.5.jar:/Users/jonathandameus/.m2/repository/org/springframework/spring-webmvc/6.0.13/spring-webmvc-6.0.13.jar:/Users/jonathandameus/.m2/repository/com/mysql/mysql-connector-j/8.0.33/mysql-connector-j-8.0.33.jar:/Users/jonathandameus/.m2/repository/jakarta/xml/bind/jakarta.xml.bind-api/4.0.1/jakarta.xml.bind-api-4.0.1.jar:/Users/jonathandameus/.m2/repository/jakarta/activation/jakarta.activation-api/2.1.2/jakarta.activation-api-2.1.2.jar:/Users/jonathandameus/.m2/repository/org/springframework/spring-core/6.0.13/spring-core-6.0.13.jar:/Users/jonathandameus/.m2/repository/org/springframework/spring-jcl/6.0.13/spring-jcl-6.0.13.jar:/Users/jonathandameus/.m2/repository/org/springframework/security/spring-security-web/5.7.7/spring-security-web-5.7.7.jar:/Users/jonathandameus/.m2/repository/org/springframework/spring-aop/6.0.13/spring-aop-6.0.13.jar:/Users/jonathandameus/.m2/repository/org/springframework/spring-beans/6.0.13/spring-beans-6.0.13.jar:/Users/jonathandameus/.m2/repository/org/springframework/spring-context/6.0.13/spring-context-6.0.13.jar:/Users/jonathandameus/.m2/repository/org/springframework/spring-expression/6.0.13/spring-expression-6.0.13.jar:/Users/jonathandameus/.m2/repository/org/springframework/security/spring-security-core/5.5.8/spring-security-core-5.5.8.jar:/Users/jonathandameus/.m2/repository/org/springframework/security/spring-security-crypto/6.1.5/spring-security-crypto-6.1.5.jar:/Users/jonathandameus/.m2/repository/org/springframework/boot/spring-boot-starter-security/3.1.5/spring-boot-starter-security-3.1.5.jar:/Users/jonathandameus/.m2/repository/org/springframework/security/spring-security-config/6.1.5/spring-security-config-6.1.5.jar com.jondoetech.JRPropertyManagement.JrPropertyManagementApplication
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.1.5)
2023-11-09T01:54:07.216-05:00 INFO 64162 --- [ main] c.j.J.JrPropertyManagementApplication : Starting JrPropertyManagementApplication using Java 21.0.1 with PID 64162 (/Users/jonathandameus/Code_GitHub/JDT_Client/JR_Property_Management/server/JRPropertyManagement/target/classes started by jonathandameus in /Users/jonathandameus/Code_GitHub/JDT_Client/JR_Property_Management/server/JRPropertyManagement)
2023-11-09T01:54:07.219-05:00 INFO 64162 --- [ main] c.j.J.JrPropertyManagementApplication : No active profile set, falling back to 1 default profile: "default"
2023-11-09T01:54:07.873-05:00 INFO 64162 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2023-11-09T01:54:07.928-05:00 INFO 64162 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 49 ms. Found 3 JPA repository interfaces.
2023-11-09T01:54:08.460-05:00 INFO 64162 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2023-11-09T01:54:08.470-05:00 INFO 64162 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2023-11-09T01:54:08.471-05:00 INFO 64162 --- [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.15]
2023-11-09T01:54:08.561-05:00 INFO 64162 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2023-11-09T01:54:08.562-05:00 INFO 64162 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1286 ms
2023-11-09T01:54:08.731-05:00 INFO 64162 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2023-11-09T01:54:08.774-05:00 INFO 64162 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 6.2.13.Final
2023-11-09T01:54:08.776-05:00 INFO 64162 --- [ main] org.hibernate.cfg.Environment : HHH000406: Using bytecode reflection optimizer
2023-11-09T01:54:08.977-05:00 INFO 64162 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer
2023-11-09T01:54:08.997-05:00 INFO 64162 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2023-11-09T01:54:09.318-05:00 INFO 64162 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@36463b09
2023-11-09T01:54:09.321-05:00 INFO 64162 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2023-11-09T01:54:09.982-05:00 INFO 64162 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
2023-11-09T01:54:10.012-05:00 INFO 64162 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2023-11-09T01:54:10.367-05:00 WARN 64162 --- [ main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2023-11-09T01:54:10.395-05:00 WARN 64162 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through field 'httpSecurity': Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.HttpSecurityConfiguration.httpSecurity' defined in class path resource [org/springframework/security/config/annotation/web/configuration/HttpSecurityConfiguration.class]: Failed to instantiate [org.springframework.security.config.annotation.web.builders.HttpSecurity]: Factory method 'httpSecurity' threw exception with message: javax/servlet/Filter
2023-11-09T01:54:10.396-05:00 INFO 64162 --- [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2023-11-09T01:54:10.398-05:00 INFO 64162 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2023-11-09T01:54:10.405-05:00 INFO 64162 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
2023-11-09T01:54:10.406-05:00 INFO 64162 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2023-11-09T01:54:10.415-05:00 INFO 64162 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2023-11-09T01:54:10.435-05:00 ERROR 64162 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through field 'httpSecurity': Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.HttpSecurityConfiguration.httpSecurity' defined in class path resource [org/springframework/security/config/annotation/web/configuration/HttpSecurityConfiguration.class]: Failed to instantiate [org.springframework.security.config.annotation.web.builders.HttpSecurity]: Factory method 'httpSecurity' threw exception with message: javax/servlet/Filter
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:767) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:747) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:145) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:492) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1416) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:597) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:973) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:950) ~[spring-context-6.0.13.jar:6.0.13]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:616) ~[spring-context-6.0.13.jar:6.0.13]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.1.5.jar:3.1.5]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:738) ~[spring-boot-3.1.5.jar:3.1.5]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:440) ~[spring-boot-3.1.5.jar:3.1.5]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) ~[spring-boot-3.1.5.jar:3.1.5]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) ~[spring-boot-3.1.5.jar:3.1.5]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) ~[spring-boot-3.1.5.jar:3.1.5]
at com.jondoetech.JRPropertyManagement.JrPropertyManagementApplication.main(JrPropertyManagementApplication.java:12) ~[classes/:na]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.HttpSecurityConfiguration.httpSecurity' defined in class path resource [org/springframework/security/config/annotation/web/configuration/HttpSecurityConfiguration.class]: Failed to instantiate [org.springframework.security.config.annotation.web.builders.HttpSecurity]: Factory method 'httpSecurity' threw exception with message: javax/servlet/Filter
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:654) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:488) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1332) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1162) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:560) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:343) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1417) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1337) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:764) ~[spring-beans-6.0.13.jar:6.0.13]
... 20 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.config.annotation.web.builders.HttpSecurity]: Factory method 'httpSecurity' threw exception with message: javax/servlet/Filter
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:171) ~[spring-beans-6.0.13.jar:6.0.13]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:650) ~[spring-beans-6.0.13.jar:6.0.13]
... 31 common frames omitted
Caused by: java.lang.NoClassDefFoundError: javax/servlet/Filter
at java.base/java.lang.ClassLoader.defineClass1(Native Method) ~[na:na]
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1027) ~[na:na]
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) ~[na:na]
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862) ~[na:na]
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760) ~[na:na]
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681) ~[na:na]
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639) ~[na:na]
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[na:na]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[na:na]
at org.springframework.security.config.annotation.web.builders.FilterOrderRegistration.(FilterOrderRegistration.java:117) ~[spring-security-config-6.1.5.jar:6.1.5]
at org.springframework.security.config.annotation.web.builders.HttpSecurity.(HttpSecurity.java:158) ~[spring-security-config-6.1.5.jar:6.1.5]
at org.springframework.security.config.annotation.web.configuration.HttpSecurityConfiguration.httpSecurity(HttpSecurityConfiguration.java:110) ~[spring-security-config-6.1.5.jar:6.1.5]
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[na:na]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:139) ~[spring-beans-6.0.13.jar:6.0.13]
... 32 common frames omitted
Caused by: java.lang.ClassNotFoundException: javax.servlet.Filter
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[na:na]
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[na:na]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[na:na]
... 47 common frames omitted
Process finished with exit code 1
файл pom.xml
4.0.0
org.springframework.boot
spring-boot-starter-parent
3.1.5
com.jondoetech
JRPropertyManagement
0.0.1-SNAPSHOT
JRPropertyManagement
JRPropertyManagement using Spring Boot
17
org.springframework.boot
spring-boot-starter-data-jpa
org.springframework.boot
spring-boot-starter-web
com.mysql
mysql-connector-j
runtime
org.springframework.boot
spring-boot-starter-test
test
org.springframework.security
spring-security-web
5.7.7
org.springframework.security
spring-security-core
5.5.8
org.springframework.boot
spring-boot-starter-security
org.springframework.security
spring-security-config
javax.servlet
javax.servlet-api
6.0.0
provided
org.springframework.boot
spring-boot-maven-plugin
Подробнее здесь: https://stackoverflow.com/questions/774 ... lter-class