Remove ApplicationInfo

Rework commit 4a69755b to remove the need for the ApplicationInfo class.
The updated code now uses the auto-configuration class to compute a
default persistence unit root location

Closes gh-6635
This commit is contained in:
Phillip Webb
2016-08-29 22:53:15 +01:00
committed by Stephane Nicoll
parent b488a3d9a3
commit 2a22a7af12
8 changed files with 52 additions and 139 deletions

View File

@@ -11,9 +11,9 @@ welcome = { ->
// Try to print using the banner interface
if (beanFactory != null) {
try {
def appInfo = beanFactory.getBean("springApplicationInfo")
def banner = beanFactory.getBean("springBootBanner")
def out = new java.io.ByteArrayOutputStream()
appInfo.banner.printBanner(environment, null, new java.io.PrintStream(out))
banner.printBanner(environment, null, new java.io.PrintStream(out))
return out.toString()
} catch (Exception ex) {
// Ignore