Я создал проект с Spring Boot 2.1.1 и при попытке его поднять получаю следующую ошибку:
2018- 12-10 19:23:14.837 ОШИБКА 8096 --- [main] o.s.boot.SpringApplication: Ошибка запуска приложения
java.lang.IllegalStateException: Ошибка обработки условия org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration.propertySourcesPlaceholderConfigurer
at
org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:64)
~ [spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE] в
org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:108)
~[ Spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE] в
org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader.java:181)
~[spring-context -5.1.3.RELEASE.jar:5.1.3.RELEASE] в
org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:141)
~[spring-context-5.1. 3.RELEASE.jar:5.1.3.RELEASE] в
org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:117)
~[spring-context-5.1.3.RELEASE .jar:5.1.3.RELEASE] по адресу
org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:327)
~[spring-context-5.1.3.RELEASE.jar: 5.1.3.RELEASE] в
org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:232)
~[spring-context-5.1.3.RELEASE.jar:5.1.3 .RELEASE] по адресу
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275)
~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE] at
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95)
~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE] at
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:691)
~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE] в
org .springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:528)
~[spring-context-5.1.3.RELEASE.jar:5.1.3.RELEASE] в
org.springframework. boot.SpringApplication.refresh(SpringApplication.java:775)
[spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE] в
org.springframework.boot.SpringApplication.refreshContext( SpringApplication.java:397)
[spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE] в
org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
[spring-boot-2.1.1.RELEASE.jar:2.1.1.RELEASE] в
org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
[spring -boot-2.1.1.RELEASE.jar:2.1.1.RELEASE] в
org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
[spring-boot-2.1.1 .RELEASE.jar:2.1.1.RELEASE] at
atuq.FrigorificoApplication.main(FrigorificoApplication.java:14)
[classes/:na] Вызвано: java.lang.IllegalStateException: Не удалось класс introspect
[org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration]
из ClassLoader [sun.misc.Launcher$AppClassLoader@73d16e93] в
org. Springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:686)
~[spring-core-5.1.3.RELEASE.jar:5.1.3.RELEASE] в
org.springframework.util.ReflectionUtils .doWithMethods(ReflectionUtils.java:583)
~[spring-core-5.1.3.RELEASE.jar:5.1.3.RELEASE] в
org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils. java:568)
~[spring-core-5.1.3.RELEASE.jar:5.1.3.RELEASE] в
org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods(ReflectionUtils.java:626) ~[spring-core-5.1.3.RELEASE.jar:5.1.3.RELEASE] at
java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
~[ na:1.8.0_181] в
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:721)
~[spring-beans-5.1.3.RELEASE.jar:5.1 .3.RELEASE] по адресу
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:662)
~[spring-beans-5.1.3.RELEASE.jar:5.1. 3.RELEASE] по адресу
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:630)
~[spring-beans-5.1.3.RELEASE.jar:5.1.3 .RELEASE] по адресу
org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1518)
~[spring-beans-5.1.3.RELEASE.jar:5.1.3. RELEASE] по адресу
org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1023)
~[spring-beans-5.1.3.RELEASE.jar:5.1.3.RELEASE ] at
org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanTypeForNonAliasDefinition(BeanTypeRegistry.java:195)
~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1. RELEASE] в
org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanTypeForNonAliasDefinition(BeanTypeRegistry.java:159)
~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1 .RELEASE] в
org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.addBeanType(BeanTypeRegistry.java:152)
~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1. 1.RELEASE] в
org.springframework.boot.autoconfigure.condition.BeanTypeRegistry.updateTypesIfNecessary(BeanTypeRegistry.java:140)
~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1 .1.RELEASE] в
java.util.Iterator.forEachRemaining(Iterator.java:116) ~[na:1.8.0_181]
в
org.springframework.boot.autoconfigure.condition .BeanTypeRegistry.updateTypesIfNecessary(BeanTypeRegistry.java:135)
~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE] в
org.springframework.boot.autoconfigure. условие.BeanTypeRegistry.getNamesForType(BeanTypeRegistry.java:97)
~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE] в
org.springframework.boot.autoconfigure .condition.OnBeanCondition.collectBeanNamesForType(OnBeanCondition.java:298)
~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE] в
org.springframework.boot. autoconfigure.condition.OnBeanCondition.getBeanNamesForType(OnBeanCondition.java:289)
~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE] в
org.springframework.boot .autoconfigure.condition.OnBeanCondition.getBeanNamesForType(OnBeanCondition.java:278)
~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE] в
org.springframework. boot.autoconfigure.condition.OnBeanCondition.getMatchingBeans(OnBeanCondition.java:189)
~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE] в
org.springframework .boot.autoconfigure.condition.OnBeanCondition.getMatchOutcome(OnBeanCondition.java:160)
~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE] в
org. Springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:47)
~[spring-boot-autoconfigure-2.1.1.RELEASE.jar:2.1.1.RELEASE] ... 16
общие фреймы опущены. Причина: java.lang.NoClassDefFoundError:
javax/servlet/Filter at java.lang.Class.getDeclaredMethods0(Native
Method) ~[na:1.8.0_181] at
java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
~[na:1.8.0_181] at
java.lang.Class.getDeclaredMethods(Class.java:1975) ~[na :1.8.0_181]
at
org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:668)
~[spring-core-5.1.3.RELEASE.jar:5.1. 3.RELEASE] ... 38 общих фреймов
опущены. Причина: java.lang.ClassNotFoundException:
javax.servlet.Filter at
java.net.URLClassLoader.findClass(URLClassLoader.java: 381)
~[na:1.8.0_181] в
java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_181]
в sun.misc. Launcher$AppClassLoader.loadClass(Launcher.java:349)
~[na:1.8.0_181] at
java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_181 ]
... 42 общих фрейма опущены
paso el pom.xml:
4.0.0
org.springframework.boot
spring-boot-starter-parent
2.1.1.RELEASE
atuq
frigorifico
0.0.1-SNAPSHOT
war
frigorifico
Frigorifico Malargue
UTF-8
UTF-8
1.8
org.springframework.boot
spring-boot-starter-data-jpa
org.springframework.boot
spring-boot-starter-mail
org.springframework.boot
spring-boot-starter-security
org.springframework.boot
spring-boot-starter-web
mysql
mysql-connector-java
runtime
org.springframework.boot
spring-boot-starter-tomcat
provided
org.springframework.boot
spring-boot-starter-test
test
io.jsonwebtoken
jjwt
0.9.0
jar
org.apache.commons
commons-collections4
4.1
jar
commons-collections
commons-collections
3.2.2
jar
org.springframework.boot
spring-boot-maven-plugin
Подробнее здесь: https://stackoverflow.com/questions/537 ... tion-web-c
Не удалось проанализировать класс [org.springframework.security.config.annotation.web.configuration.WebSecurityConfigura ⇐ JAVA
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver
Anonymous » » в форуме JAVA - 0 Ответы
- 7 Просмотры
-
Последнее сообщение Anonymous
-