1
0

feat: 增加配置加载显示

This commit is contained in:
2024-11-05 09:13:03 +08:00
parent aa4bb7a8ef
commit 527c7b8cfa

View File

@@ -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 ->