feat: 增加配置加载显示
This commit is contained in:
@@ -70,6 +70,8 @@ class Application : ApplicationRunner, ApplicationListener<ContextClosedEvent> {
|
||||
@Configuration
|
||||
@ExperimentalStdlibApi
|
||||
class Configuration {
|
||||
private val logger = LoggerFactory.getLogger(javaClass)
|
||||
|
||||
@Bean
|
||||
fun jvmManagement(
|
||||
driverProperties: DriverProperties,
|
||||
@@ -77,6 +79,10 @@ class Configuration {
|
||||
): Management = JvmManagement(
|
||||
database = LocalFileDatabase(databaseProperties.jsonPath)
|
||||
).also { management ->
|
||||
logger.info("Loaded driver path: {}", driverProperties.driverPath)
|
||||
logger.info("Loaded binary path: {}", driverProperties.binaryPath)
|
||||
logger.info("Loaded database path: {}", databaseProperties.h2Path)
|
||||
logger.info("Loaded database path: {}", databaseProperties.jsonPath)
|
||||
management
|
||||
.fetchConfiguration()
|
||||
.let { information ->
|
||||
|
||||
Reference in New Issue
Block a user