支持lazy-initialization启动,项目大了后启动会更快

pull/8722/head
JEECG 2025-08-13 13:55:13 +08:00
parent 69fca254f0
commit ba0052d452
1 changed files with 6 additions and 2 deletions

View File

@ -25,6 +25,9 @@ management:
include: metrics,jeecghttptrace include: metrics,jeecghttptrace
spring: spring:
# main:
# # 启动加速 (建议开发环境开启后flyway自动升级失效)
# lazy-initialization: true
flyway: flyway:
# 是否启用flyway # 是否启用flyway
enabled: true enabled: true
@ -46,7 +49,7 @@ spring:
mail.smtp.writetimeout: 10000 # 写入超时(毫秒) mail.smtp.writetimeout: 10000 # 写入超时(毫秒)
mail.smtp.auth: true mail.smtp.auth: true
smtp.ssl.enable: true smtp.ssl.enable: true
mail.debug: true # 启用调试模式(查看详细日志) # mail.debug: true # 启用调试模式(查看详细日志)
## quartz定时任务,采用数据库方式 ## quartz定时任务,采用数据库方式
quartz: quartz:
job-store-type: jdbc job-store-type: jdbc
@ -180,7 +183,7 @@ mybatis-plus:
table-underline: true table-underline: true
configuration: configuration:
# 这个配置会将执行的sql打印出来在开发或测试的时候可以用 # 这个配置会将执行的sql打印出来在开发或测试的时候可以用
#log-impl: org.apache.ibatis.logging.stdout.StdOutImpl log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# 返回类型为Map,显示null对应的字段 # 返回类型为Map,显示null对应的字段
call-setters-on-nulls: true call-setters-on-nulls: true
#jeecg专用配置 #jeecg专用配置
@ -292,6 +295,7 @@ logging:
level: level:
org.flywaydb: debug org.flywaydb: debug
org.jeecg.modules.system.mapper: info org.jeecg.modules.system.mapper: info
org.jeecg.modules.demo.test.mapper: info
#swagger #swagger
knife4j: knife4j:
#开启增强配置 #开启增强配置