Skip to content

Commit 0b2a8e9

Browse files
committed
Create spring-boot-webmvc module
1 parent 9e7c82c commit 0b2a8e9

File tree

129 files changed

+452
-381
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+452
-381
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ include "spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"
117117
include "spring-boot-project:spring-boot-tx"
118118
include "spring-boot-project:spring-boot-undertow"
119119
include "spring-boot-project:spring-boot-validation"
120+
include "spring-boot-project:spring-boot-webmvc"
120121
include "spring-boot-system-tests:spring-boot-deployment-tests"
121122
include "spring-boot-system-tests:spring-boot-image-tests"
122123
include "spring-boot-tests:spring-boot-integration-tests:spring-boot-configuration-processor-tests"

spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ dependencies {
4646
optional(project(":spring-boot-project:spring-boot-tomcat"))
4747
optional(project(":spring-boot-project:spring-boot-undertow"))
4848
optional(project(":spring-boot-project:spring-boot-validation"))
49+
optional(project(":spring-boot-project:spring-boot-webmvc"))
4950
optional("ch.qos.logback:logback-classic")
5051
optional("org.apache.cassandra:java-driver-core") {
5152
exclude group: "org.slf4j", module: "jcl-over-slf4j"

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletEndpointManagementContextConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
2626
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
2727
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type;
28-
import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletPath;
2928
import org.springframework.boot.jersey.autoconfigure.JerseyApplicationPath;
29+
import org.springframework.boot.webmvc.autoconfigure.DispatcherServletPath;
3030
import org.springframework.context.annotation.Bean;
3131
import org.springframework.context.annotation.Configuration;
3232
import org.springframework.web.servlet.DispatcherServlet;

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/security/servlet/SecurityRequestMatchersManagementContextConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
2525
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
2626
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
27-
import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletPath;
2827
import org.springframework.boot.jersey.autoconfigure.JerseyApplicationPath;
28+
import org.springframework.boot.webmvc.autoconfigure.DispatcherServletPath;
2929
import org.springframework.context.annotation.Bean;
3030
import org.springframework.context.annotation.Configuration;
3131
import org.springframework.security.web.util.matcher.RequestMatcher;

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/servlet/CompositeHandlerExceptionResolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@
2626
import org.springframework.beans.factory.HierarchicalBeanFactory;
2727
import org.springframework.beans.factory.ListableBeanFactory;
2828
import org.springframework.beans.factory.annotation.Autowired;
29-
import org.springframework.boot.web.servlet.error.DefaultErrorAttributes;
29+
import org.springframework.boot.webmvc.error.DefaultErrorAttributes;
3030
import org.springframework.core.annotation.AnnotationAwareOrderComparator;
3131
import org.springframework.web.servlet.HandlerExceptionResolver;
3232
import org.springframework.web.servlet.ModelAndView;

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/servlet/ManagementErrorEndpoint.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
import org.springframework.boot.autoconfigure.web.ErrorProperties;
2222
import org.springframework.boot.web.error.ErrorAttributeOptions;
2323
import org.springframework.boot.web.error.ErrorAttributeOptions.Include;
24-
import org.springframework.boot.web.servlet.error.ErrorAttributes;
25-
import org.springframework.boot.web.servlet.error.ErrorController;
24+
import org.springframework.boot.webmvc.error.ErrorAttributes;
25+
import org.springframework.boot.webmvc.error.ErrorController;
2626
import org.springframework.stereotype.Controller;
2727
import org.springframework.util.Assert;
2828
import org.springframework.web.bind.annotation.RequestMapping;

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/servlet/WebMvcEndpointChildContextConfiguration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
2626
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type;
2727
import org.springframework.boot.autoconfigure.web.ServerProperties;
28-
import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration;
29-
import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletRegistrationBean;
3028
import org.springframework.boot.web.server.ErrorPage;
3129
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
3230
import org.springframework.boot.web.server.servlet.ConfigurableServletWebServerFactory;
33-
import org.springframework.boot.web.servlet.error.ErrorAttributes;
3431
import org.springframework.boot.web.servlet.filter.OrderedRequestContextFilter;
32+
import org.springframework.boot.webmvc.autoconfigure.DispatcherServletAutoConfiguration;
33+
import org.springframework.boot.webmvc.autoconfigure.DispatcherServletRegistrationBean;
34+
import org.springframework.boot.webmvc.error.ErrorAttributes;
3535
import org.springframework.context.annotation.Bean;
3636
import org.springframework.core.Ordered;
3737
import org.springframework.web.context.request.RequestContextListener;

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/servlet/CloudFoundryActuatorAutoConfigurationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@
4141
import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration;
4242
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
4343
import org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration;
44-
import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration;
45-
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
4644
import org.springframework.boot.http.autoconfigure.HttpMessageConvertersAutoConfiguration;
4745
import org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration;
4846
import org.springframework.boot.test.context.assertj.AssertableWebApplicationContext;
4947
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
48+
import org.springframework.boot.webmvc.autoconfigure.DispatcherServletAutoConfiguration;
49+
import org.springframework.boot.webmvc.autoconfigure.WebMvcAutoConfiguration;
5050
import org.springframework.context.ApplicationContext;
5151
import org.springframework.http.HttpMethod;
5252
import org.springframework.mock.web.MockHttpServletRequest;

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/servlet/CloudFoundryHealthEndpointWebExtensionTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration;
3434
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
3535
import org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration;
36-
import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration;
37-
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
3836
import org.springframework.boot.http.autoconfigure.HttpMessageConvertersAutoConfiguration;
3937
import org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration;
4038
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
39+
import org.springframework.boot.webmvc.autoconfigure.DispatcherServletAutoConfiguration;
40+
import org.springframework.boot.webmvc.autoconfigure.WebMvcAutoConfiguration;
4141

4242
import static org.assertj.core.api.Assertions.assertThat;
4343

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/servlet/CloudFoundryInfoEndpointWebExtensionTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
import org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration;
3333
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
3434
import org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration;
35-
import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration;
36-
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
3735
import org.springframework.boot.http.autoconfigure.HttpMessageConvertersAutoConfiguration;
3836
import org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration;
3937
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
4038
import org.springframework.boot.testsupport.classpath.resources.WithResource;
39+
import org.springframework.boot.webmvc.autoconfigure.DispatcherServletAutoConfiguration;
40+
import org.springframework.boot.webmvc.autoconfigure.WebMvcAutoConfiguration;
4141

4242
import static org.assertj.core.api.Assertions.assertThat;
4343

0 commit comments

Comments
 (0)