项目在STS工具中编译是没有问题的,但导入到IDEA中,进行启动后报错:
需要在pom文件中加入:
<dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId> <scope>compile</scope> <!-- 不打包的时候用,打包的时候注释--> <!--<scope>provided</scope>--> <!--打包的时候用,不打包的时候注释--> </dependency>