An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

servletrest
===========

[![Circle CI](https://circleci.com/gh/MapTalks/servletrest.svg?style=svg)](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.
###