我servlet
为一个简单的电子书店编写了一个 java,由于某种原因,我不明白为什么它不能编译。下面我粘贴了给我错误的代码部分:
public void int(ServletConfig conf) throws ServletException {
super.init(conf);
}
发生的错误如下所示:
<identifier> expected -> (public void ^int(Servlet..... )...)
'(' expected -> piblic void **i**nt
illegal start of type -> public void int**(**Servlet....
';' expected -> public void int(ServletConfig^conf)...
<identifier> expected -> public void int(ServletConfig conf**)**...
illegal start of type -> public void int(ServletConfig conf) **throws**....
';' expected -> public void int(ServletConfig conf) throws ServletException^
我真的不明白,这应该工作。如果需要,我将发布整个源文件。
任何建议都可以。