Polish docs

See gh-4309
This commit is contained in:
Johnny Lim
2015-10-27 13:21:26 +09:00
committed by Stephane Nicoll
parent 2431767c81
commit 396bea22b9
7 changed files with 15 additions and 17 deletions

View File

@@ -85,7 +85,7 @@ public class LoggingApplicationListener implements GenericApplicationListener {
* to shut down the logging system when the JVM exits.
* @see LoggingSystem#getShutdownHandler
*/
public static final String REGISTER_SHOW_HOOK_PROPERTY = "logging.register-shutdown-hook";
public static final String REGISTER_SHUTDOWN_HOOK_PROPERTY = "logging.register-shutdown-hook";
/**
* The name of the Spring property that contains the path where the logging
@@ -332,7 +332,7 @@ public class LoggingApplicationListener implements GenericApplicationListener {
private void registerShutdownHookIfNecessary(Environment environment,
LoggingSystem loggingSystem) {
boolean registerShutdownHook = new RelaxedPropertyResolver(environment)
.getProperty(REGISTER_SHOW_HOOK_PROPERTY, Boolean.class, false);
.getProperty(REGISTER_SHUTDOWN_HOOK_PROPERTY, Boolean.class, false);
if (registerShutdownHook) {
Runnable shutdownHandler = loggingSystem.getShutdownHandler();
if (shutdownHandler != null

View File

@@ -73,7 +73,7 @@ public @interface EntityScan {
* <p>
* Consider creating a special no-op marker class or interface in each package that
* serves no purpose other than being referenced by this attribute.
* @return classes form the base packages to scan
* @return classes from the base packages to scan
*/
Class<?>[] basePackageClasses() default {};