@Bean public ServletRegistrationBean dispatcherServlet(ApplicationContext applicationContext) { MessageDispatcherServlet servlet = new MessageDispatcherServlet(); servlet.setApplicationContext(applicationContext); servlet.setTransformWsdlLocations(false); return new ServletRegistrationBean(servlet, Constants.SERVLET_REGISTRATION_BEAN); }