zerh / servletio Goto Github PK
View Code? Open in Web Editor NEWServletIO - convert your servlets to MVC controllers
Home Page: http://zerh.github.io/ServletIO/
ServletIO - convert your servlets to MVC controllers
Home Page: http://zerh.github.io/ServletIO/
I follow your code like this:
package com.tracy.webdemo.servlet
@WebServlet("/test/*")
public class TestServlet extends ServletIO {
@get("/")
public Result oldCode(Request req, Response res){
//HttpServletRequest request = req.raw;
//HttpServletResponse response = res.raw;
return respond("<h1>hello world</h1>").asHtml();
}
}
And the WEB-INF/web.xml :
<servlet>
<servlet-name>TestServlet</servlet-name>
<servlet-class>com.tracy.webdemo.servlet.TestServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TestServlet</servlet-name>
<url-pattern>/test</url-pattern>
</servlet-mapping>
But the link:
http://localhost:8080/test
reponse 404 error
And I write a original HttpServlet subclass to present "/hello" url, and it works.
So what do I miss?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.