Description Resource Path Location Type The superclass "javax.servlet.http.HttpServlet" was not foun
Description Resource Path Location Type
The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path index.jsp /SpringBootDemo/src/main/webapp line 1 JSP Problem
学SpringBoot建第一个项目遇到的小问题
问题如下:主要问题:Description Resource Path Location Type
The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path index.jsp /SpringBootDemo/src/main/webapp line 1 JSP Problem
虽说项目可以运行但是有一丢丢的我来说很是难受呀。
解决方案(去掉错误):以下步骤
在自己的项目上点击右键–>鼠标划到最下面properties进行点击
点击Add Library进去
这样问题就解决了没有了红叉叉了可以正常运行了
Application.代码块
package com.chinasoft.SpringBoot_1;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.support.SpringBootServletInitializer;
/*把普通java类 转换成SpringBoot的框架启动类
需要spring的虚拟注解 及继承web服务的父类*/
@SpringBootApplication
@ServletComponentScan
public class Application extends SpringBootServletInitializer{/框架启动方法/
public static void main(String[] args) {
// TODO Auto-generated method stub
/用线程工具方法启动 保证单线程/
SpringApplication.run(Application.class, args);
}
}
- Description Resource Path Location Type The superclass "javax.servlet.http.HttpServlet" was not foun
- Description Resource Path Location Type The superclass "javax.servlet.http.HttpServlet" was not foun
- Description Resource Path Location Type The superclass "javax.servlet.http.HttpServlet" was not foun
- DescriptionResource Path Location Type The superclass "javax.servlet.http.HttpServlet" was not foun
- (转载)(DescriptionResource Path Location Type The superclass "javax.servlet.http.HttpServlet" was not ...
- HttpServletRequest cannot be resolved to a type The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- Eclipse中jsp页面报The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- myeclipse中关于The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- 运行tomcat:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- maven项目里的jsp报错The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方法
- JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JSP报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- Description Resource Path Location Type The project was not built due to "Could not delete '/Test/bi