title: 07Springboot-- 导包运行报错IllegalStateException tags: Error categories:
计算机科学JavaSpringBoot框架SpringBoot框架常见错误集合 abbrlink: 16083 date: 2020-10-05 17:12:30
项目场景:
运行IDEA 时出现错误
问题描述:
java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration.propertySourcesPlaceholderConfigurer
原因分析:
依赖
解决方案:
<dependency
>
<groupId
>org.springframework.boot
</groupId
>
<artifactId
>spring-boot-starter-tomcat
</artifactId
>
<!--
<scope
>provided
</scope
>--
>
</dependency
>
在pom.xml文件中将scope注释 再加上
<dependency
>
<groupId
>javax.servlet
</groupId
>
<artifactId
>javax.servlet-api
</artifactId
>
<version
>3.1.0
</version
>
</dependency
>
我的博客,欢迎点击光顾