您只需要定义
dispatcherServlet
@Bean:
@Beanpublic ServletRegistrationBean dispatcherServlet() { ServletRegistrationBean registration = new ServletRegistrationBean( new DispatcherServlet(), "/"); registration.setAsyncSupported(true); return registration;}
它会覆盖的默认值
DispatcherServletAutoConfiguration。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)