web.xml
访问路径是 /services/....
resource : Java 资源(服务)
注意如果没有 Resource 将会报如下异常:
com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
部署后:
http://localhost:8080/jersey/services/hello 访问
今天在部署一个工程的时候老报如上异常: 很费解:
弄了半天在 tomcat的 webapps 目录下 还有一个其他(Resultful)工程
是那个工程报的错