mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish
This commit is contained in:
parent
5e0ba6ea2e
commit
084b288947
@ -407,11 +407,13 @@ public class JettyEmbeddedServletContainerFactory
|
||||
*/
|
||||
private Configuration getErrorPageConfiguration() {
|
||||
return new AbstractConfiguration() {
|
||||
|
||||
@Override
|
||||
public void configure(WebAppContext context) throws Exception {
|
||||
ErrorHandler errorHandler = context.getErrorHandler();
|
||||
addJettyErrorPages(errorHandler, getErrorPages());
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@ -421,6 +423,7 @@ public class JettyEmbeddedServletContainerFactory
|
||||
*/
|
||||
private Configuration getMimeTypeConfiguration() {
|
||||
return new AbstractConfiguration() {
|
||||
|
||||
@Override
|
||||
public void configure(WebAppContext context) throws Exception {
|
||||
MimeTypes mimeTypes = context.getMimeTypes();
|
||||
@ -429,6 +432,7 @@ public class JettyEmbeddedServletContainerFactory
|
||||
mapping.getMimeType());
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user