14
14
* limitations under the License.
15
15
*/
16
16
17
- package org .springframework .boot .autoconfigure . web . servlet ;
17
+ package org .springframework .boot .servlet . autoconfigure ;
18
18
19
19
import java .net .URI ;
20
20
import java .util .stream .Stream ;
28
28
29
29
import org .springframework .boot .context .properties .EnableConfigurationProperties ;
30
30
import org .springframework .boot .jetty .servlet .JettyServletWebServerFactory ;
31
- import org .springframework .boot .servlet .autoconfigure .MultipartAutoConfiguration ;
32
- import org .springframework .boot .servlet .autoconfigure .MultipartProperties ;
33
31
import org .springframework .boot .test .util .TestPropertyValues ;
34
32
import org .springframework .boot .testsupport .classpath .ForkedClassPath ;
35
33
import org .springframework .boot .testsupport .web .servlet .DirtiesUrlFactories ;
38
36
import org .springframework .boot .undertow .servlet .UndertowServletWebServerFactory ;
39
37
import org .springframework .boot .web .server .autoconfigure .ServerProperties ;
40
38
import org .springframework .boot .web .server .servlet .context .AnnotationConfigServletWebServerApplicationContext ;
41
- import org .springframework .boot .webmvc .autoconfigure .DispatcherServletAutoConfiguration ;
42
39
import org .springframework .context .annotation .Bean ;
43
40
import org .springframework .context .annotation .Configuration ;
44
41
import org .springframework .context .annotation .Import ;
@@ -267,8 +264,7 @@ WebController controller() {
267
264
}
268
265
269
266
@ Configuration (proxyBeanMethods = false )
270
- @ Import ({ TomcatServletWebServerAutoConfiguration .class , DispatcherServletAutoConfiguration .class ,
271
- MultipartAutoConfiguration .class })
267
+ @ Import ({ TomcatServletWebServerAutoConfiguration .class , MultipartAutoConfiguration .class })
272
268
@ EnableConfigurationProperties (MultipartProperties .class )
273
269
static class BaseConfiguration {
274
270
@@ -279,6 +275,11 @@ ServerProperties serverProperties() {
279
275
return properties ;
280
276
}
281
277
278
+ @ Bean
279
+ DispatcherServlet dispatcherServlet () {
280
+ return new DispatcherServlet ();
281
+ }
282
+
282
283
}
283
284
284
285
@ Configuration (proxyBeanMethods = false )
0 commit comments