Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
2dc8f49f
Commit
2dc8f49f
authored
Nov 27, 2018
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
dad6d4be
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
21 deletions
+9
-21
ConfigurationPropertySource.java
...ontext/properties/source/ConfigurationPropertySource.java
+1
-0
TomcatEmbeddedContext.java
...ework/boot/web/embedded/tomcat/TomcatEmbeddedContext.java
+2
-3
AbstractFilterRegistrationBean.java
...work/boot/web/servlet/AbstractFilterRegistrationBean.java
+0
-5
ServletRegistrationBean.java
...ngframework/boot/web/servlet/ServletRegistrationBean.java
+0
-5
WebServiceTemplateCustomizer.java
...boot/webservices/client/WebServiceTemplateCustomizer.java
+1
-0
ServletComponentScanRegistrarTests.java
.../boot/web/servlet/ServletComponentScanRegistrarTests.java
+3
-5
AbstractServletWebServerFactoryTests.java
.../servlet/server/AbstractServletWebServerFactoryTests.java
+2
-3
No files found.
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertySource.java
View file @
2dc8f49f
...
@@ -30,6 +30,7 @@ import org.springframework.boot.origin.OriginTrackedValue;
...
@@ -30,6 +30,7 @@ import org.springframework.boot.origin.OriginTrackedValue;
* @see OriginTrackedValue
* @see OriginTrackedValue
* @see #getConfigurationProperty(ConfigurationPropertyName)
* @see #getConfigurationProperty(ConfigurationPropertyName)
*/
*/
@FunctionalInterface
public
interface
ConfigurationPropertySource
{
public
interface
ConfigurationPropertySource
{
/**
/**
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatEmbeddedContext.java
View file @
2dc8f49f
...
@@ -61,9 +61,8 @@ class TomcatEmbeddedContext extends StandardContext {
...
@@ -61,9 +61,8 @@ class TomcatEmbeddedContext extends StandardContext {
}
}
public
void
deferredLoadOnStartup
()
throws
LifecycleException
{
public
void
deferredLoadOnStartup
()
throws
LifecycleException
{
doWithThreadContextClassLoader
(
getLoader
().
getClassLoader
(),
()
->
{
doWithThreadContextClassLoader
(
getLoader
().
getClassLoader
(),
getLoadOnStartupWrappers
(
findChildren
()).
forEach
(
this
::
load
);
()
->
getLoadOnStartupWrappers
(
findChildren
()).
forEach
(
this
::
load
));
});
}
}
private
Stream
<
Wrapper
>
getLoadOnStartupWrappers
(
Container
[]
children
)
{
private
Stream
<
Wrapper
>
getLoadOnStartupWrappers
(
Container
[]
children
)
{
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/AbstractFilterRegistrationBean.java
View file @
2dc8f49f
...
@@ -29,9 +29,6 @@ import javax.servlet.FilterRegistration;
...
@@ -29,9 +29,6 @@ import javax.servlet.FilterRegistration;
import
javax.servlet.FilterRegistration.Dynamic
;
import
javax.servlet.FilterRegistration.Dynamic
;
import
javax.servlet.ServletContext
;
import
javax.servlet.ServletContext
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.util.Assert
;
import
org.springframework.util.Assert
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
...
@@ -55,8 +52,6 @@ public abstract class AbstractFilterRegistrationBean<T extends Filter>
...
@@ -55,8 +52,6 @@ public abstract class AbstractFilterRegistrationBean<T extends Filter>
@Deprecated
@Deprecated
protected
static
final
int
REQUEST_WRAPPER_FILTER_MAX_ORDER
=
0
;
protected
static
final
int
REQUEST_WRAPPER_FILTER_MAX_ORDER
=
0
;
private
final
Log
logger
=
LogFactory
.
getLog
(
getClass
());
private
static
final
String
[]
DEFAULT_URL_MAPPINGS
=
{
"/*"
};
private
static
final
String
[]
DEFAULT_URL_MAPPINGS
=
{
"/*"
};
private
Set
<
ServletRegistrationBean
<?>>
servletRegistrationBeans
=
new
LinkedHashSet
<>();
private
Set
<
ServletRegistrationBean
<?>>
servletRegistrationBeans
=
new
LinkedHashSet
<>();
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletRegistrationBean.java
View file @
2dc8f49f
...
@@ -26,9 +26,6 @@ import javax.servlet.Servlet;
...
@@ -26,9 +26,6 @@ import javax.servlet.Servlet;
import
javax.servlet.ServletContext
;
import
javax.servlet.ServletContext
;
import
javax.servlet.ServletRegistration
;
import
javax.servlet.ServletRegistration
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.util.Assert
;
import
org.springframework.util.Assert
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
...
@@ -54,8 +51,6 @@ import org.springframework.util.StringUtils;
...
@@ -54,8 +51,6 @@ import org.springframework.util.StringUtils;
public
class
ServletRegistrationBean
<
T
extends
Servlet
>
public
class
ServletRegistrationBean
<
T
extends
Servlet
>
extends
DynamicRegistrationBean
<
ServletRegistration
.
Dynamic
>
{
extends
DynamicRegistrationBean
<
ServletRegistration
.
Dynamic
>
{
private
static
final
Log
logger
=
LogFactory
.
getLog
(
ServletRegistrationBean
.
class
);
private
static
final
String
[]
DEFAULT_MAPPINGS
=
{
"/*"
};
private
static
final
String
[]
DEFAULT_MAPPINGS
=
{
"/*"
};
private
T
servlet
;
private
T
servlet
;
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/webservices/client/WebServiceTemplateCustomizer.java
View file @
2dc8f49f
...
@@ -24,6 +24,7 @@ import org.springframework.ws.client.core.WebServiceTemplate;
...
@@ -24,6 +24,7 @@ import org.springframework.ws.client.core.WebServiceTemplate;
* @author Dmytro Nosan
* @author Dmytro Nosan
* @since 2.1.0
* @since 2.1.0
*/
*/
@FunctionalInterface
public
interface
WebServiceTemplateCustomizer
{
public
interface
WebServiceTemplateCustomizer
{
/**
/**
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/ServletComponentScanRegistrarTests.java
View file @
2dc8f49f
...
@@ -85,11 +85,9 @@ public class ServletComponentScanRegistrarTests {
...
@@ -85,11 +85,9 @@ public class ServletComponentScanRegistrarTests {
@Test
@Test
public
void
packagesConfiguredWithBothValueAndBasePackages
()
{
public
void
packagesConfiguredWithBothValueAndBasePackages
()
{
assertThatExceptionOfType
(
AnnotationConfigurationException
.
class
)
assertThatExceptionOfType
(
AnnotationConfigurationException
.
class
)
.
isThrownBy
(()
->
{
.
isThrownBy
(()
->
this
.
context
=
new
AnnotationConfigApplicationContext
(
this
.
context
=
new
AnnotationConfigApplicationContext
(
ValueAndBasePackages
.
class
))
ValueAndBasePackages
.
class
);
.
withMessageContaining
(
"'value'"
).
withMessageContaining
(
"'basePackages'"
)
}).
withMessageContaining
(
"'value'"
)
.
withMessageContaining
(
"'basePackages'"
)
.
withMessageContaining
(
"com.example.foo"
)
.
withMessageContaining
(
"com.example.foo"
)
.
withMessageContaining
(
"com.example.bar"
);
.
withMessageContaining
(
"com.example.bar"
);
}
}
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactoryTests.java
View file @
2dc8f49f
...
@@ -1049,9 +1049,8 @@ public abstract class AbstractServletWebServerFactoryTests {
...
@@ -1049,9 +1049,8 @@ public abstract class AbstractServletWebServerFactoryTests {
@Test
@Test
public
void
exceptionThrownOnLoadFailureIsRethrown
()
{
public
void
exceptionThrownOnLoadFailureIsRethrown
()
{
AbstractServletWebServerFactory
factory
=
getFactory
();
AbstractServletWebServerFactory
factory
=
getFactory
();
this
.
webServer
=
factory
.
getWebServer
((
context
)
->
{
this
.
webServer
=
factory
.
getWebServer
((
context
)
->
context
context
.
addServlet
(
"failing"
,
FailingServlet
.
class
).
setLoadOnStartup
(
0
);
.
addServlet
(
"failing"
,
FailingServlet
.
class
).
setLoadOnStartup
(
0
));
});
assertThatExceptionOfType
(
WebServerException
.
class
)
assertThatExceptionOfType
(
WebServerException
.
class
)
.
isThrownBy
(
this
.
webServer
::
start
)
.
isThrownBy
(
this
.
webServer
::
start
)
.
satisfies
(
this
::
wrapsFailingServletException
);
.
satisfies
(
this
::
wrapsFailingServletException
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment