摘要: 阿里云短信 window 报 cURL error 60: SSL certificate problem: unable to get local issuer certificate 原文链接:https://blog.csdn.net/qq_41408081/article/details/1 阅读全文
posted @ 2024-04-01 19:31 Smile☆ 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 引入依赖 <!--日期时间工具--> <dependency> <groupId>joda-time</groupId> <artifactId>joda-time</artifactId> <version>2.10.1</version> </dependency> 使用方式: DateTime 阅读全文
posted @ 2023-08-28 15:30 Smile☆ 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 使用Spring Cache的好处: 1,提供基本的Cache抽象,方便切换各种底层Cache; 2,通过注解Cache可以实现类似于事务一样,缓存逻辑透明的应用到我们的业务代码上,且只需要更少的代码就可以完成; 3,提供事务回滚时也自动回滚缓存; 4,支持比较复杂的缓存逻辑; 以下以自己的某个模块 阅读全文
posted @ 2023-08-21 15:59 Smile☆ 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 前提是依赖必须导入: <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <version>2.2.0-beta2</version> </dependency> 导出 首先在自己的接口中创建一 阅读全文
posted @ 2023-08-21 12:20 Smile☆ 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1,首先创建一个空项目 里面 有两个服务 一个提供者 一个调用者 2,父工程的使用依赖 以及springBoot的父依赖 // springboot父工程 <parent> <artifactId>spring-boot-starter-parent</artifactId> <groupId>or 阅读全文
posted @ 2023-08-06 13:23 Smile☆ 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 使用依赖时 发现依赖有问题,回来检查发现没有 加springboot父工程 检查父模块是否加入父标签: 只需要在父模块中添加一次就可以了 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-star 阅读全文
posted @ 2023-08-06 11:14 Smile☆ 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1,在数据库中设置该字段类型为 timestamp 2,设置默认值为 CURRENT_TIMESTAMP 3,更新字段需要点击勾选 根据当前时间戳更新 而创建时间是不需要勾选的 因为创建只需要一次 阅读全文
posted @ 2023-08-06 11:07 Smile☆ 阅读(118) 评论(0) 推荐(0) 编辑
摘要: PhpSpreadsheet是一个纯PHP编写的组件库,它使用现代PHP写法,代码质量和性能比PHPExcel高不少,完全可以替代PHPExcel(PHPExcel已不再维护)。使用PhpSpreadsheet可以轻松读取和写入Excel文档,支持Excel的所有操作。1. 初识PhpSpreads 阅读全文
posted @ 2022-10-23 17:57 Smile☆ 阅读(735) 评论(0) 推荐(0) 编辑
摘要: $period = new \DatePeriod( new \DateTime($start_time), // 开始时间 new \DateInterval('P1D'), new \DateTime($end_time) // 结束时间);foreach ($period as $key => 阅读全文
posted @ 2022-09-28 15:05 Smile☆ 阅读(45) 评论(0) 推荐(0) 编辑
摘要: array_walk($list, function (&$item) { $item = array_diff($item, ['name', 'sex']); }); array_walk($arr_ten, function (&$val) { unset($val['pay']);}); 阅读全文
posted @ 2022-08-11 16:25 Smile☆ 阅读(20) 评论(0) 推荐(0) 编辑