Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
Overview
Details
Activity
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
openSource
spring-boot-admin
Commits
ebd94f0c
Commit
ebd94f0c
authored
Nov 08, 2016
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Handler for AsyncRequestTimeoutException
fixes #317
parent
f700fbf8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
JournalController.java
...codecentric/boot/admin/journal/web/JournalController.java
+9
-0
No files found.
spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/journal/web/JournalController.java
View file @
ebd94f0c
...
...
@@ -21,13 +21,17 @@ import java.util.ArrayList;
import
java.util.Collection
;
import
java.util.LinkedList
;
import
javax.servlet.http.HttpServletRequest
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.context.event.EventListener
;
import
org.springframework.http.MediaType
;
import
org.springframework.util.MimeTypeUtils
;
import
org.springframework.web.bind.annotation.ExceptionHandler
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.context.request.async.AsyncRequestTimeoutException
;
import
org.springframework.web.servlet.mvc.method.annotation.SseEmitter
;
import
de.codecentric.boot.admin.event.ClientApplicationEvent
;
...
...
@@ -81,4 +85,9 @@ public class JournalController {
}
}
}
@ExceptionHandler
(
AsyncRequestTimeoutException
.
class
)
public
void
asyncRequestTimeoutExceptionHandler
(
HttpServletRequest
req
)
{
LOGGER
.
debug
(
"Async request to '{}' timed out"
,
req
.
getRequestURI
());
}
}
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