项目在STS工具中编译是没有问题的,但导入到IDEA中,进行启动后报错:

从eclipse中导入到IDEA中的SpringBoot项目,启动时报错 Unable to start EmbeddedWebApplicationContext due to missing Em从eclipse中导入到IDEA中的SpringBoot项目,启动时报错 Unable to start EmbeddedWebApplicationContext due to missing Em

需要在pom文件中加入:

<dependency>
          <groupId>org.apache.tomcat.embed</groupId>
          <artifactId>tomcat-embed-jasper</artifactId>
          <scope>compile</scope>   <!-- 不打包的时候用,打包的时候注释-->
   <!--<scope>provided</scope>-->  <!--打包的时候用,不打包的时候注释-->
      </dependency>

相关文章:

  • 2021-07-01
  • 2021-12-24
  • 2021-11-03
  • 2021-12-13
  • 2022-12-23
猜你喜欢
  • 2021-12-11
  • 2021-07-27
  • 2021-05-25
  • 2022-01-16
  • 2022-12-23
  • 2022-01-12
  • 2021-12-19
相关资源
相似解决方案