javax.servlet-api报错问题

报错:NoClassDefFoundError: javax/servlet/http/HttpServletResponse
服务原有依赖

		<dependency>
		    <groupId>javax.servletgroupId>
		    <artifactId>javax.servlet-apiartifactId>
		    <scope>providedscope>
		dependency>

新加依赖后解决

		<dependency>
			<groupId>org.apache.tomcat.embedgroupId>
			<artifactId>tomcat-embed-websocketartifactId>
			<version>9.0.44version>
		dependency>

		<dependency>
			 <groupId>org.springframework.bootgroupId>
			 <artifactId>spring-boot-starter-thymeleafartifactId>
		dependency>

你可能感兴趣的:(servlet)