https://github.com/maptalks/servletrest
A simple, light-weighted restful servlet framework for JAVA
https://github.com/maptalks/servletrest
Last synced: about 1 year ago
JSON representation
A simple, light-weighted restful servlet framework for JAVA
- Host: GitHub
- URL: https://github.com/maptalks/servletrest
- Owner: maptalks
- License: mit
- Created: 2014-08-05T14:55:30.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2018-02-28T12:22:42.000Z (over 8 years ago)
- Last Synced: 2025-02-04T12:05:09.047Z (over 1 year ago)
- Language: Java
- Size: 158 KB
- Stars: 1
- Watchers: 6
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
servletrest
===========
[](https://circleci.com/gh/MapTalks/servletrest)
A simple, light-weighted, easy-to-use restful servlet framework for JAVA.
it is very simple to configure restservlet, including 2 steps:
step 1: configure restservlet in web.xml to handle all the requests with a common prefix of the url, for example: http://foo.com/foo/rest/*
###
RestServlet
cn.com.seegoo.servletrest.RestServlet
ServletConfig
/servletconfig.xml
Encoding
UTF-8
1
RestServlet
rest/
step2: create some url patterns in a file named servletconfig.xml to match request url with a certain servlet class.
save servletconfig.xml in the root source folder which means servletconfig.xml will be copied in WEB-INF/classes.
###