摘要: 代码示例: <insert id="batchSave" parameterType="hashmap"> insert into t_table (id, name) values <foreach collection="list" item="line" separator=","> ( <f 阅读全文
posted @ 2021-12-01 14:16 丶六千里 阅读(556) 评论(0) 推荐(0)
摘要: 简介 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)
摘要: 1、查看已经开放的端口 firewall-cmd --list-ports 2、开放单个端口(开放端口后重启防火墙生效) firewall-cmd --zone=public --add-port=8080/tcp --permanent 3、开放多个端口(开放端口后重启防火墙生效) firewal 阅读全文
posted @ 2021-06-03 15:29 丶六千里 阅读(177) 评论(0) 推荐(0)
摘要: 最近在工作中需要在后台调用远程接口,于是自己封装了一个HttpClient工具类,简单轻松的实现get,post请求,分享给大家。 public class HttpUtil { /** * post请求传输map数据 * * @param url url地址 * @param map map数据 阅读全文
posted @ 2021-06-03 14:18 丶六千里 阅读(656) 评论(0) 推荐(0)