Autodiscover JAX-RS resources with CXF in a Spring application

前端 未结 4 2087

Is it possible with Apache CXF (2.7.0) to automatically discover JAX-RS resources in the classpath? That is, classes annotated with @Path.

4条回答
  •  不知归路
    2020-12-09 11:31

    In addition to what has been suggested: it works indeed in 3.0.0-milestone2, one would just do a top level jaxrs server declaration only and set basePackages attribute which may have one or more space separated package names.

提交回复
热议问题