2229499815 / async-excel

一个基于easyexcel大数据量数据导入导出异步处理组件
Apache License 2.0
91 stars 21 forks source link

yml文件的配置怎么写 #8

Open alanleung2017 opened 4 months ago

alanleung2017 commented 4 months ago

现在只有application.prop的写法

SSSDNSY commented 4 months ago
spring:
  excel:
    datasource:
      driver-class-name:
      url:
      password: 

你是说的这个方式么?

在这个ExcelDataSourceProperties已经支持上述yml格式配置, 借助springboot的@ConfigurationProperties已经实现对 yml,yaml,properties格式的配置支持了。
@ConfigurationProperties("spring.excel.datasource")
public class ExcelDataSourceProperties