No interface expected here error was encountered when implementing the code. Idea was not compiled. No interface expected here means there is no interface.
resolvent
After a look around, we found that servlet is an interface, not a class. Httpservlet is an abstract class, so when we change it to servlet, we need to change extensions to implements.
Change extend to implements
Read More:
- Line 1: error: class, interface, or enum expected [in MainClass.java]
- An error was reported when springboot connected to redis Servlet.service () for servlet [dispatcherServlet] in context with path [] threw e
- [Solved] SpringMVC Run Error: SEVERE-Servlet.service() for servlet jsp threw exception
- Spring boot project running error: Servlet.service () for servlet [dispatcherServlet] threw exception
- Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request p
- When ifconfig configures the network, “siocsifaddr: no such device” and “eth0: error while getting interface” appear flags:No such dev”
- The solution to the problem that the method of interacting with database in the servlet class is invalid after the servlet submits 404, 500 refresh and becomes 404, and after connecting to the data pool
- The spring boot set appears in the stand-alone version of redis Servlet.service () for servlet [dispatcherServlet] in context with path [] thr
- Centos7 installation interface without interface
- No qualifying bean of type ‘javax.sql.DataSource‘ available: expected at least 1
- Centos-7 set boot to enter the text interface (not enter the graphical interface)
- Exception of browser accessing servlet404
- Eclipse create servlet file error
- Possible causes and solutions of 404 problems in accessing servlet pages
- To solve the problem of C # calling excel interface error, prompt: the COM object of Microsoft. Office. Interop. Excel. Applicationclass is forcibly converted to the interface type “Microsoft. Offi”
- When idea writes JavaWeb, it can’t find servlet
- HTTP Status 500-Error instantiating servlet class problem solving
- Servlet page Jump error 500
- Problems of accessing servlet display 404 on MyEclipse
- Unable to access javax.servlet.servletexception [How to Solve]