Hosting Static Content and JAX-RS Services Under the Same Root Context

后端 未结 2 951
情歌与酒
情歌与酒 2021-01-05 20:54

We have multiple Java web apps packaged as WARs all packaged in an EAR. Our RESTful services are built using JAX-RS and in version specific WARs.

We\'d like to add

2条回答
  •  礼貌的吻别
    2021-01-05 21:39

    I found another solution (thanks to https://stackoverflow.com/a/3582215/589525 ). This works for RestEasy on JBoss 6. Simply add the default servlet to the mapping

    
    
      Resteasy
      /rest/*
    
    
    
      default
      *
    
    

提交回复
热议问题