title: Servlets and Filters registered as Spring Beans instead of web.xml in Grails
body: <p>In the Grails <a href="https://grails.github.io/grails-doc/latest/guide/upgrading.html" rel="nofollow">'Upgrading from 2.x to 3.0.6' document</a> it's been noted that "new servlets and filters can be registered as Spring beans or with ServletRegistrationBean and FilterRegistrationBean respectively" however not much else is said on the matter. </p>
  
  <p>I am wondering if anybody has any good input on how to do this properly (i.e., using the init/BootStrap.groovy which contains the servlet context to load beans, versus beans in conf/spring) or perhaps there is some pre-defined Spring way of doing this that's obvious and I am missing. </p>
  
  <p>Note: I am trying to integrate spring-ws into Grails 3.0.6.</p>