跳至主要內容

[java] jerscy xml

jerscy


		< servlet-name>jersey-serlvet
		< servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer
		< init-param>
		     com.sun.jersey.config.property.packages
		     com.cch.core.ws.provider
		< /init-param>
		< load-on-startup>1
	< /servlet>
	< servlet-mapping>
		< servlet-name>jersey-serlvet
		< url-pattern>/hsn/*
	< /servlet-mapping>

jerscy2

< web-app id="WebApp_ID" version="2.4"
	xmlns="http://java.sun.com/xml/ns/j2ee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
	http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
	Restful Web Application
	 < servlet>
        < servlet-name>jersey-serlvet
        < servlet-class>org.glassfish.jersey.servlet.ServletContainer
        < init-param>
             < param-name>jersey.config.server.provider.packages
             < param-value>com.cch.ws.provide
        < /init-param>
        < load-on-startup>1
    < /servlet>
    < servlet-mapping>
        < servlet-name>jersey-serlvet
        < url-pattern>/hsn/*
    < /servlet-mapping>
分類:java
由 Compete Themes 設計的 Author 佈景主題