@GET
  @Path("/{asset: .+}")
  public Response getSwaggerUiAsset(@PathParam("asset") String assetPath) {
    if (!ASSETS.contains(assetPath)) {
      return Response.status(404).build();
    }

    InputStream stream = getClass().getResourceAsStream("ui-dist/" + assetPath);
    return Response.ok(stream).build();
  }
@ GET @ Path ( "/{asset: .+}" ) public Response getSwaggerUiAsset ( @ PathParam ( "asset" ) String assetPath ) { if ( ! ASSETS . contains ( assetPath ) ) { return Response . status ( 404 ) . build ( ) ; } InputStream stream = getClass ( ) . getResourceAsStream ( "ui-dist/" + assetPath ) ; return Response . ok ( stream ) . build ( ) ; }
relative link to "images/throbber.gif" in swagger-ui.json will work.