摘要: 简介 EasyExcel是一个基于Java的简单、省内存的读写Excel的开源项目。在尽可能节约内存的情况下支持读写百M的Excel。 准备 引入maven <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</arti 阅读全文
posted @ 2021-11-16 14:24 丶六千里 阅读(1637) 评论(0) 推荐(0)
摘要: 代码示例: import com.demo.entity.properties.FileConfig; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory. 阅读全文
posted @ 2021-11-16 11:13 丶六千里 阅读(41) 评论(0) 推荐(0)
摘要: 代码示例: @Component public class FileUtil { @Autowired FileConfig fileConfig; @Autowired private static FileConfig staticFileConfig; @PostConstruct publi 阅读全文
posted @ 2021-11-16 10:44 丶六千里 阅读(356) 评论(0) 推荐(0)
摘要: 功能 @PropertySource 加载指定的配置文件(*.properties)到 Spring 环境中。可以配合 @Value 或者 @ConfigurationProperties 使用。 @PropertySource 和 @Value 配合使用,可以将自定义配置文件中的属性注入到某个类中 阅读全文
posted @ 2021-11-16 10:32 丶六千里 阅读(428) 评论(0) 推荐(0)