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
102da8b3
Commit
102da8b3
authored
Mar 16, 2017
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
91fe0405
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
SpringApplication.java
...main/java/org/springframework/boot/SpringApplication.java
+6
-4
AbstractFailureAnalyzer.java
...ngframework/boot/diagnostics/AbstractFailureAnalyzer.java
+2
-2
PropertySourcesLoader.java
...a/org/springframework/boot/env/PropertySourcesLoader.java
+1
-1
No files found.
spring-boot/src/main/java/org/springframework/boot/SpringApplication.java
View file @
102da8b3
...
...
@@ -140,8 +140,8 @@ import org.springframework.web.context.support.StandardServletEnvironment;
* Configuration properties are also bound to the {@link SpringApplication}. This makes it
* possible to set {@link SpringApplication} properties dynamically, like the sources
* ("spring.main.sources" - a CSV list) the flag to indicate a web environment
* ("spring.main.web
_environment=tru
e") or the flag to switch off the banner
* ("spring.main.
show_banner=false
").
* ("spring.main.web
-application-type=non
e") or the flag to switch off the banner
* ("spring.main.
banner-mode=off
").
*
* @author Phillip Webb
* @author Dave Syer
...
...
@@ -340,7 +340,8 @@ public class SpringApplication {
bindToSpringApplication
(
environment
);
Banner
printedBanner
=
printBanner
(
environment
);
context
=
createApplicationContext
();
exceptionReporters
=
getSpringFactoriesInstances
(
SpringBootExceptionReporter
.
class
,
exceptionReporters
=
getSpringFactoriesInstances
(
SpringBootExceptionReporter
.
class
,
new
Class
[]
{
ConfigurableApplicationContext
.
class
},
context
);
prepareContext
(
context
,
environment
,
listeners
,
applicationArguments
,
printedBanner
);
...
...
@@ -854,7 +855,8 @@ public class SpringApplication {
private
void
handleRunFailure
(
ConfigurableApplicationContext
context
,
SpringApplicationRunListeners
listeners
,
Collection
<
SpringBootExceptionReporter
>
exceptionReporters
,
Throwable
exception
)
{
Collection
<
SpringBootExceptionReporter
>
exceptionReporters
,
Throwable
exception
)
{
try
{
try
{
handleExitCode
(
context
,
exception
);
...
...
spring-boot/src/main/java/org/springframework/boot/diagnostics/AbstractFailureAnalyzer.java
View file @
102da8b3
...
...
@@ -59,10 +59,10 @@ public abstract class AbstractFailureAnalyzer<T extends Throwable>
}
@SuppressWarnings
(
"unchecked"
)
protected
final
<
E
extends
Throwable
>
T
findCause
(
Throwable
failure
,
Class
<
E
>
type
)
{
protected
final
<
E
extends
Throwable
>
E
findCause
(
Throwable
failure
,
Class
<
E
>
type
)
{
while
(
failure
!=
null
)
{
if
(
type
.
isInstance
(
failure
))
{
return
(
T
)
failure
;
return
(
E
)
failure
;
}
failure
=
failure
.
getCause
();
}
...
...
spring-boot/src/main/java/org/springframework/boot/env/PropertySourcesLoader.java
View file @
102da8b3
...
...
@@ -33,7 +33,7 @@ import org.springframework.util.Assert;
import
org.springframework.util.StringUtils
;
/**
* Utility that can be used
to
{@link MutablePropertySources} using
* Utility that can be used
update
{@link MutablePropertySources} using
* {@link PropertySourceLoader}s.
*
* @author Phillip Webb
...
...
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