How to enable Jersey Servlet in web.xml
To enable jersey web service in your web application, simply copy and paste the code below in your web.xml file. <servlet> <serv...
https://www.czetsuyatech.com/2012/09/javaee-enable-jersey-on-web-xml.html
To enable jersey web service in your web application, simply copy and paste the code below in your web.xml file.
<servlet> <servlet-name>Jersey REST Service</servlet-name> <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> <init-param> <param-name>com.sun.jersey.config.property.packages</param-name> <param-value>com.ipiel</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Jersey REST Service</servlet-name> <url-pattern>/api/*</url-pattern> </servlet-mapping>
Post a Comment