<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> <!--<scope>provided</scope>--> </dependency>
在pom文件中將scope註釋
再加上html
<dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> </dependency>
相關博文:java
IntelliJ IDEA打開Maven項目,Spring boot全部依賴紅名,不可用spring
建立Maven項目,GroupId和Artifact Id該如何填寫?tomcat
問:hibernate的sessionfactory是幹嗎的?session又是幹嗎的呢?
session
啓動spring boot項目時報錯:java.lang.ClassNotFoundException: javax.servlet.Filteride
springMVC中的註解@RequestParam與@PathVariable的區別spring-boot
》更多推薦...post