How to deploy a JAX-RS application?

前端 未结 4 655
没有蜡笔的小新
没有蜡笔的小新 2020-11-29 19:16

The JAX-RS 1.1 specification says on page 6:

If no Application subclass is present the added servlet MUST be named:

javax.ws.rs.core         


        
4条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-29 19:36

    With Servlet3.0, follow this. This works for me.

    
        JAX-RS Tools Generated - Do not modify
        JAX-RS Servlet
        com.ibm.websphere.jaxrs.server.IBMRestServlet
        
            javax.ws.rs.Application
            your.restsrv.config.RESTConfig
        
        1
        true
        false
    
    
        javax.ws.rs.core.Application
        1
    
    
        javax.ws.rs.core.Application
        /rest/*
    
    
        JAX-RS Servlet
        /*
    
    

提交回复
热议问题