title: configure Servlet holder in Jetty as Spring boot embdeed server
body: <p>I'm trying to move our legacy jetty application to Spring boot application where jetty will be used embedded server .</p>
  
  <p>Is there a way to configure below piece of code in Spring boot ?        </p>
  
  <pre><code>ServletHolder applicationHolder = new ServletHolder(new ServletContainer());
          applicationHolder.setInitParameter(org.glassfish.jersey.server.ServerProperties.PROVIDER_PACKAGES, packages);
          applicationHolder.setInitOrder(0);
  
          ServletContextHandler contextHandler = new ServletContextHandler(options);
          contextHandler.setContextPath(contextPath);
          contextHandler.addServlet(applicationHolder, "/*");
  </code></pre>