Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 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.
|
||||
@@ -76,7 +76,9 @@ public class WebSocketAnnotationMethodMessageHandler extends SimpAnnotationMetho
|
||||
AnnotationExceptionHandlerMethodResolver resolver = new AnnotationExceptionHandlerMethodResolver(type);
|
||||
if (resolver.hasExceptionMappings()) {
|
||||
registerExceptionHandlerAdvice(bean, resolver);
|
||||
logger.info("Detected @MessageExceptionHandler methods in " + bean);
|
||||
if (logger.isInfoEnabled()) {
|
||||
logger.info("Detected @MessageExceptionHandler methods in " + bean);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -145,9 +145,9 @@ public class ServerEndpointExporter extends WebApplicationObjectSupport
|
||||
ServerContainer serverContainer = getServerContainer();
|
||||
Assert.state(serverContainer != null,
|
||||
"No ServerContainer set. Most likely the server's own WebSocket ServletContainerInitializer " +
|
||||
"has not run yet. Was the Spring ApplicationContext refreshed through a " +
|
||||
"org.springframework.web.context.ContextLoaderListener, " +
|
||||
"i.e. after the ServletContext has been fully initialized?");
|
||||
"has not run yet. Was the Spring ApplicationContext refreshed through a " +
|
||||
"org.springframework.web.context.ContextLoaderListener, " +
|
||||
"i.e. after the ServletContext has been fully initialized?");
|
||||
try {
|
||||
if (logger.isInfoEnabled()) {
|
||||
logger.info("Registering @ServerEndpoint class: " + endpointClass);
|
||||
|
||||
Reference in New Issue
Block a user