JavaShuo
栏目
标签
Servlet错误: No interface expected here
时间 2021-01-11
标签
JavaWeb
栏目
Tomcat
繁體版
原文
原文链接
在实现代码的时候遇到 No interface expected here 错误,idea没有编译过去,No interface expected here的意思是这里没有接口。 解决方法 找了一圈,查看了下,Servlet是一个接口,而不是一个类,HttpServlet是一个抽象类,所以改为Servlet时的时候需要把extends改为implements。 把extend 修改为 implem
>>阅读原文<<
相关文章
1.
idea 中 class or interface expected 错误
2.
Found interface org.elasticsearch.common.bytes.BytesReference, but class was expected
3.
svn的Option expected错误
4.
Wrong namespace. Expected 'cn.itheima.dao.CustomerMapping' 错误
5.
servlet错误①
6.
servlet常见错误
7.
Servlet—包—的错误
8.
Sparksql 一个错误:org.apache.spark.sql.AnalysisException: character ' ' not supported here;
9.
CDH5之Found class jline.Terminal, but interface was expected
10.
Line 1: error: class, interface, or enum expected [in MainClass.java]
更多相关文章...
•
错误处理
-
RUST 教程
•
PHP PDO 错误与错误处理
-
PHP参考手册
•
Tomcat学习笔记(史上最全tomcat学习笔记)
•
PHP Ajax 跨域问题最佳解决方案
相关标签/搜索
expected
interface
错误
逻辑错误
无错误
错误集
mysql错误
FileZilla错误
改正错误
错误率
Java
Tomcat
PHP 7 新特性
Thymeleaf 教程
Hibernate教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
添加voicebox
2.
Java 8u40通过Ask广告软件困扰Mac用户
3.
数字图像处理入门[1/2](从几何变换到图像形态学分析)
4.
如何调整MathType公式的字体大小
5.
mAP_Roi
6.
GCC编译器安装(windows环境)
7.
LightGBM参数及分布式
8.
安装lightgbm以及安装xgboost
9.
开源matpower安装过程
10.
从60%的BI和数据仓库项目失败,看出从业者那些不堪的乱象
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
idea 中 class or interface expected 错误
2.
Found interface org.elasticsearch.common.bytes.BytesReference, but class was expected
3.
svn的Option expected错误
4.
Wrong namespace. Expected 'cn.itheima.dao.CustomerMapping' 错误
5.
servlet错误①
6.
servlet常见错误
7.
Servlet—包—的错误
8.
Sparksql 一个错误:org.apache.spark.sql.AnalysisException: character ' ' not supported here;
9.
CDH5之Found class jline.Terminal, but interface was expected
10.
Line 1: error: class, interface, or enum expected [in MainClass.java]
>>更多相关文章<<