Polish docs
See gh-4309
This commit is contained in:
committed by
Stephane Nicoll
parent
2431767c81
commit
396bea22b9
@@ -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
|
||||
|
||||
@@ -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 {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user