<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
            <!--<scope>provided</scope>-->
        </dependency>

 

在pom文件中将scope注释
再加上

 

<dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.1.0</version>
        </dependency>

posted on 2020-09-02 17:30  锋齐叶落  阅读(906)  评论(0)    收藏  举报