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
f2ebf10a
Commit
f2ebf10a
authored
Jan 13, 2021
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.4.x'
Closes gh-24800
parents
304c49d7
a95a7e3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
RestartApplicationListener.java
...ork/boot/devtools/restart/RestartApplicationListener.java
+2
-3
SilentExitExceptionHandler.java
...ork/boot/devtools/restart/SilentExitExceptionHandler.java
+4
-2
No files found.
spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/RestartApplicationListener.java
View file @
f2ebf10a
/*
* Copyright 2012-202
0
the original author or authors.
* Copyright 2012-202
1
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -83,12 +83,11 @@ public class RestartApplicationListener implements ApplicationListener<Applicati
}
if
(
restartInitializer
!=
null
)
{
String
[]
args
=
event
.
getArgs
();
DefaultRestartInitializer
initializer
=
new
DefaultRestartInitializer
();
boolean
restartOnInitialize
=
!
AgentReloader
.
isActive
();
if
(!
restartOnInitialize
)
{
logger
.
info
(
"Restart disabled due to an agent-based reloader being active"
);
}
Restarter
.
initialize
(
args
,
false
,
i
nitializer
,
restartOnInitialize
);
Restarter
.
initialize
(
args
,
false
,
restartI
nitializer
,
restartOnInitialize
);
}
else
{
logger
.
info
(
LogMessage
.
format
(
"Restart disabled due to System property '%s' being set to false"
,
...
...
spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/SilentExitExceptionHandler.java
View file @
f2ebf10a
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
21
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -17,6 +17,7 @@
package
org
.
springframework
.
boot
.
devtools
.
restart
;
import
java.lang.Thread.UncaughtExceptionHandler
;
import
java.lang.reflect.InvocationTargetException
;
import
java.util.Arrays
;
/**
...
...
@@ -35,7 +36,8 @@ class SilentExitExceptionHandler implements UncaughtExceptionHandler {
@Override
public
void
uncaughtException
(
Thread
thread
,
Throwable
exception
)
{
if
(
exception
instanceof
SilentExitException
)
{
if
(
exception
instanceof
SilentExitException
||
(
exception
instanceof
InvocationTargetException
&&
((
InvocationTargetException
)
exception
).
getTargetException
()
instanceof
SilentExitException
))
{
if
(
isJvmExiting
(
thread
))
{
preventNonZeroExitCode
();
}
...
...
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