Close context to ensure that logging system is cleaned up

See gh-6688
This commit is contained in:
Andy Wilkinson 2016-08-25 20:41:43 +01:00
parent 43361e0ca5
commit 10402a651f
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2012-2016 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.
@ -37,7 +37,7 @@ public class SampleLogbackApplication {
}
public static void main(String[] args) throws Exception {
SpringApplication.run(SampleLogbackApplication.class, args);
SpringApplication.run(SampleLogbackApplication.class, args).close();
}
}