Skip to content

Commit 33e54ed

Browse files
committed
Relocate org.springframework.boot.web.support
Move `org.springframework.boot.web.support` under the `servlet` package. Fixes spring-projectsgh-8557
1 parent 9d61882 commit 33e54ed

File tree

28 files changed

+54
-54
lines changed

28 files changed

+54
-54
lines changed

Diff for: spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/DispatcherServletAutoConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
import org.springframework.boot.autoconfigure.condition.SpringBootCondition;
3939
import org.springframework.boot.context.properties.EnableConfigurationProperties;
4040
import org.springframework.boot.web.servlet.ServletRegistrationBean;
41-
import org.springframework.boot.web.support.SpringBootServletInitializer;
41+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
4242
import org.springframework.context.annotation.Bean;
4343
import org.springframework.context.annotation.ConditionContext;
4444
import org.springframework.context.annotation.Conditional;

Diff for: spring-boot-cli/src/main/java/org/springframework/boot/cli/app/SpringApplicationWebApplicationInitializer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -24,7 +24,7 @@
2424
import javax.servlet.ServletException;
2525

2626
import org.springframework.boot.builder.SpringApplicationBuilder;
27-
import org.springframework.boot.web.support.SpringBootServletInitializer;
27+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
2828

2929
/**
3030
* {@link SpringBootServletInitializer} for CLI packaged WAR files.

Diff for: spring-boot-deployment-tests/spring-boot-deployment-test-glassfish/src/main/java/sample/SampleGlassfishDeployApplication.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -17,7 +17,7 @@
1717
package sample;
1818

1919
import org.springframework.boot.autoconfigure.SpringBootApplication;
20-
import org.springframework.boot.web.support.SpringBootServletInitializer;
20+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
2121

2222
@SpringBootApplication
2323
public class SampleGlassfishDeployApplication extends SpringBootServletInitializer {

Diff for: spring-boot-deployment-tests/spring-boot-deployment-test-tomcat/src/main/java/sample/SampleTomcatDeployApplication.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -17,7 +17,7 @@
1717
package sample;
1818

1919
import org.springframework.boot.autoconfigure.SpringBootApplication;
20-
import org.springframework.boot.web.support.SpringBootServletInitializer;
20+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
2121

2222
@SpringBootApplication
2323
public class SampleTomcatDeployApplication extends SpringBootServletInitializer {

Diff for: spring-boot-deployment-tests/spring-boot-deployment-test-tomee/src/main/java/sample/SampleTomEEDeployApplication.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -18,7 +18,7 @@
1818

1919
import org.springframework.boot.autoconfigure.SpringBootApplication;
2020
import org.springframework.boot.builder.SpringApplicationBuilder;
21-
import org.springframework.boot.web.support.SpringBootServletInitializer;
21+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
2222

2323
@SpringBootApplication
2424
public class SampleTomEEDeployApplication extends SpringBootServletInitializer {

Diff for: spring-boot-deployment-tests/spring-boot-deployment-test-wildfly/src/main/java/sample/SampleWildFlyDeployApplication.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -17,7 +17,7 @@
1717
package sample;
1818

1919
import org.springframework.boot.autoconfigure.SpringBootApplication;
20-
import org.springframework.boot.web.support.SpringBootServletInitializer;
20+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
2121

2222
@SpringBootApplication
2323
public class SampleWildFlyDeployApplication extends SpringBootServletInitializer {

Diff for: spring-boot-parent/src/checkstyle/import-control.xml

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@
4545
<allow pkg="org.springframework.boot.web.server" />
4646
<allow pkg="org.springframework.boot.web.servlet" />
4747
</subpackage>
48-
</subpackage>
49-
<subpackage name="support">
50-
<allow pkg="javax.servlet" />
51-
<allow pkg="org.springframework.boot.web.servlet" />
52-
<allow pkg="org.springframework.boot.web.server" />
48+
<subpackage name="support">
49+
<allow pkg="javax.servlet" />
50+
<allow pkg="org.springframework.boot.web.servlet" />
51+
<allow pkg="org.springframework.boot.web.server" />
52+
</subpackage>
5353
</subpackage>
5454

5555
<!-- Reactive -->

Diff for: spring-boot-samples/spring-boot-sample-jersey/src/main/java/sample/jersey/SampleJerseyApplication.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -18,7 +18,7 @@
1818

1919
import org.springframework.boot.autoconfigure.SpringBootApplication;
2020
import org.springframework.boot.builder.SpringApplicationBuilder;
21-
import org.springframework.boot.web.support.SpringBootServletInitializer;
21+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
2222

2323
@SpringBootApplication
2424
public class SampleJerseyApplication extends SpringBootServletInitializer {

Diff for: spring-boot-samples/spring-boot-sample-jetty-jsp/src/main/java/sample/jetty/jsp/SampleJettyJspApplication.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -19,7 +19,7 @@
1919
import org.springframework.boot.SpringApplication;
2020
import org.springframework.boot.autoconfigure.SpringBootApplication;
2121
import org.springframework.boot.builder.SpringApplicationBuilder;
22-
import org.springframework.boot.web.support.SpringBootServletInitializer;
22+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
2323

2424
@SpringBootApplication
2525
public class SampleJettyJspApplication extends SpringBootServletInitializer {

Diff for: spring-boot-samples/spring-boot-sample-jta-jndi/src/main/java/sample/jndi/SampleJndiInitializer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -17,7 +17,7 @@
1717
package sample.jndi;
1818

1919
import org.springframework.boot.builder.SpringApplicationBuilder;
20-
import org.springframework.boot.web.support.SpringBootServletInitializer;
20+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
2121

2222
public class SampleJndiInitializer extends SpringBootServletInitializer {
2323

Diff for: spring-boot-samples/spring-boot-sample-servlet/src/main/java/sample/servlet/SampleServletApplication.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -28,7 +28,7 @@
2828
import org.springframework.boot.SpringBootConfiguration;
2929
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
3030
import org.springframework.boot.builder.SpringApplicationBuilder;
31-
import org.springframework.boot.web.support.SpringBootServletInitializer;
31+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
3232
import org.springframework.context.annotation.Bean;
3333

3434
@SpringBootConfiguration

Diff for: spring-boot-samples/spring-boot-sample-tomcat-jsp/src/main/java/sample/tomcat/jsp/SampleTomcatJspApplication.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -19,7 +19,7 @@
1919
import org.springframework.boot.SpringApplication;
2020
import org.springframework.boot.autoconfigure.SpringBootApplication;
2121
import org.springframework.boot.builder.SpringApplicationBuilder;
22-
import org.springframework.boot.web.support.SpringBootServletInitializer;
22+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
2323

2424
@SpringBootApplication
2525
public class SampleTomcatJspApplication extends SpringBootServletInitializer {

Diff for: spring-boot-samples/spring-boot-sample-war/src/main/java/sample/war/SampleWarApplication.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -18,7 +18,7 @@
1818

1919
import org.springframework.boot.SpringApplication;
2020
import org.springframework.boot.autoconfigure.SpringBootApplication;
21-
import org.springframework.boot.web.support.SpringBootServletInitializer;
21+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
2222
import org.springframework.context.annotation.PropertySource;
2323

2424
/**

Diff for: spring-boot-samples/spring-boot-sample-web-jsp/src/main/java/sample/jsp/SampleWebJspApplication.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -19,7 +19,7 @@
1919
import org.springframework.boot.SpringApplication;
2020
import org.springframework.boot.autoconfigure.SpringBootApplication;
2121
import org.springframework.boot.builder.SpringApplicationBuilder;
22-
import org.springframework.boot.web.support.SpringBootServletInitializer;
22+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
2323

2424
@SpringBootApplication
2525
public class SampleWebJspApplication extends SpringBootServletInitializer {

Diff for: spring-boot-samples/spring-boot-sample-web-static/src/main/java/sample/web/staticcontent/SampleWebStaticApplication.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -19,7 +19,7 @@
1919
import org.springframework.boot.SpringApplication;
2020
import org.springframework.boot.autoconfigure.SpringBootApplication;
2121
import org.springframework.boot.builder.SpringApplicationBuilder;
22-
import org.springframework.boot.web.support.SpringBootServletInitializer;
22+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
2323

2424
@SpringBootApplication
2525
public class SampleWebStaticApplication extends SpringBootServletInitializer {

Diff for: spring-boot-samples/spring-boot-sample-websocket-jetty/src/main/java/samples/websocket/jetty/SampleJettyWebSocketsApplication.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -27,7 +27,7 @@
2727
import org.springframework.boot.SpringApplication;
2828
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
2929
import org.springframework.boot.builder.SpringApplicationBuilder;
30-
import org.springframework.boot.web.support.SpringBootServletInitializer;
30+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
3131
import org.springframework.context.annotation.Bean;
3232
import org.springframework.context.annotation.Configuration;
3333
import org.springframework.web.socket.WebSocketHandler;

Diff for: spring-boot-samples/spring-boot-sample-websocket-tomcat/src/main/java/samples/websocket/tomcat/SampleTomcatWebSocketApplication.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -27,7 +27,7 @@
2727
import org.springframework.boot.SpringApplication;
2828
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
2929
import org.springframework.boot.builder.SpringApplicationBuilder;
30-
import org.springframework.boot.web.support.SpringBootServletInitializer;
30+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
3131
import org.springframework.context.annotation.Bean;
3232
import org.springframework.context.annotation.Configuration;
3333
import org.springframework.web.socket.WebSocketHandler;

Diff for: spring-boot-samples/spring-boot-sample-websocket-undertow/src/main/java/samples/websocket/undertow/SampleUndertowWebSocketsApplication.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -27,7 +27,7 @@
2727
import org.springframework.boot.SpringApplication;
2828
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
2929
import org.springframework.boot.builder.SpringApplicationBuilder;
30-
import org.springframework.boot.web.support.SpringBootServletInitializer;
30+
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
3131
import org.springframework.context.annotation.Bean;
3232
import org.springframework.context.annotation.Configuration;
3333
import org.springframework.web.socket.WebSocketHandler;

Diff for: spring-boot-test/src/main/java/org/springframework/boot/test/context/SpringBootContextLoader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import org.springframework.boot.test.mock.web.SpringBootMockServletContext;
3232
import org.springframework.boot.test.util.EnvironmentTestUtils;
3333
import org.springframework.boot.web.reactive.context.GenericReactiveWebApplicationContext;
34-
import org.springframework.boot.web.support.ServletContextApplicationContextInitializer;
34+
import org.springframework.boot.web.servlet.support.ServletContextApplicationContextInitializer;
3535
import org.springframework.context.ApplicationContext;
3636
import org.springframework.context.ApplicationContextInitializer;
3737
import org.springframework.context.ConfigurableApplicationContext;

Diff for: spring-boot/src/main/java/org/springframework/boot/web/support/ErrorPageFilter.java renamed to spring-boot/src/main/java/org/springframework/boot/web/servlet/support/ErrorPageFilter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.web.support;
17+
package org.springframework.boot.web.servlet.support;
1818

1919
import java.io.IOException;
2020
import java.util.HashMap;
@@ -53,7 +53,7 @@
5353
* @author Dave Syer
5454
* @author Phillip Webb
5555
* @author Andy Wilkinson
56-
* @since 1.4.0
56+
* @since 2.0.0
5757
*/
5858
@Order(Ordered.HIGHEST_PRECEDENCE)
5959
public class ErrorPageFilter implements Filter, ErrorPageRegistry {

Diff for: spring-boot/src/main/java/org/springframework/boot/web/support/ErrorPageFilterConfiguration.java renamed to spring-boot/src/main/java/org/springframework/boot/web/servlet/support/ErrorPageFilterConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.web.support;
17+
package org.springframework.boot.web.servlet.support;
1818

1919
import org.springframework.context.annotation.Bean;
2020
import org.springframework.context.annotation.Configuration;

Diff for: spring-boot/src/main/java/org/springframework/boot/web/support/ServletContextApplicationContextInitializer.java renamed to spring-boot/src/main/java/org/springframework/boot/web/servlet/support/ServletContextApplicationContextInitializer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.web.support;
17+
package org.springframework.boot.web.servlet.support;
1818

1919
import javax.servlet.ServletContext;
2020

@@ -29,7 +29,7 @@
2929
*
3030
* @author Dave Syer
3131
* @author Phillip Webb
32-
* @since 1.4.0
32+
* @since 2.0.0
3333
*/
3434
public class ServletContextApplicationContextInitializer implements
3535
ApplicationContextInitializer<ConfigurableWebApplicationContext>, Ordered {

Diff for: spring-boot/src/main/java/org/springframework/boot/web/support/ServletContextApplicationListener.java renamed to spring-boot/src/main/java/org/springframework/boot/web/servlet/support/ServletContextApplicationListener.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 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.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.web.support;
17+
package org.springframework.boot.web.servlet.support;
1818

1919
import javax.servlet.ServletContext;
2020

Diff for: spring-boot/src/main/java/org/springframework/boot/web/support/SpringBootServletInitializer.java renamed to spring-boot/src/main/java/org/springframework/boot/web/servlet/support/SpringBootServletInitializer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.web.support;
17+
package org.springframework.boot.web.servlet.support;
1818

1919
import javax.servlet.Filter;
2020
import javax.servlet.Servlet;
@@ -58,7 +58,7 @@
5858
* @author Dave Syer
5959
* @author Phillip Webb
6060
* @author Andy Wilkinson
61-
* @since 1.4.0
61+
* @since 2.0.0
6262
* @see #configure(SpringApplicationBuilder)
6363
*/
6464
public abstract class SpringBootServletInitializer implements WebApplicationInitializer {

Diff for: spring-boot/src/test/java/org/springframework/boot/web/support/ErrorPageFilterIntegrationTests.java renamed to spring-boot/src/test/java/org/springframework/boot/web/servlet/support/ErrorPageFilterIntegrationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.web.support;
17+
package org.springframework.boot.web.servlet.support;
1818

1919
import java.net.URI;
2020
import java.util.concurrent.CountDownLatch;
@@ -32,7 +32,7 @@
3232
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
3333
import org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext;
3434
import org.springframework.boot.web.servlet.server.ServletWebServerFactory;
35-
import org.springframework.boot.web.support.ErrorPageFilterIntegrationTests.EmbeddedWebContextLoader;
35+
import org.springframework.boot.web.servlet.support.ErrorPageFilterIntegrationTests.EmbeddedWebContextLoader;
3636
import org.springframework.context.ApplicationContext;
3737
import org.springframework.context.annotation.Bean;
3838
import org.springframework.context.annotation.Configuration;

Diff for: spring-boot/src/test/java/org/springframework/boot/web/support/ErrorPageFilterTests.java renamed to spring-boot/src/test/java/org/springframework/boot/web/servlet/support/ErrorPageFilterTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.web.support;
17+
package org.springframework.boot.web.servlet.support;
1818

1919
import java.io.IOException;
2020
import java.util.Enumeration;

0 commit comments

Comments
 (0)