1 2 3 4 5 ··· 8 下一页
摘要: 安装 composer require topthink/think-cors 配置 配置文件位于 config/cors.php [ 'paths' => ['api/*'], ... ] paths 配置示例 允许 api 目录下的跨域请求,* 代表通配符。 [ 'paths' => ['api 阅读全文
posted @ 2024-07-23 12:18 Smile☆ 阅读(5) 评论(0) 推荐(0) 编辑
摘要: https://doc.fastadmin.net/doc/163.html 阅读全文
posted @ 2024-07-01 14:08 Smile☆ 阅读(6) 评论(0) 推荐(0) 编辑
摘要: /** * 快速搜索时执行查找的字段 */ protected $searchFields = 'id'; 阅读全文
posted @ 2024-05-31 16:55 Smile☆ 阅读(3) 评论(0) 推荐(0) 编辑
摘要: {field: 'text', title: __('Text'), operate: false, visible: false}, 阅读全文
posted @ 2024-05-31 16:44 Smile☆ 阅读(21) 评论(0) 推荐(0) 编辑
摘要: html中加 <div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Url')}:</label> <div class="col-xs-12 col-sm-8"> <div class="inp 阅读全文
posted @ 2024-05-28 17:34 Smile☆ 阅读(16) 评论(0) 推荐(0) 编辑
摘要: {field: 'url', title: __('Url'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.images} 阅读全文
posted @ 2024-05-28 11:43 Smile☆ 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 阿里云短信 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:30 Smile☆ 阅读(21) 评论(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☆ 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 使用Spring Cache的好处: 1,提供基本的Cache抽象,方便切换各种底层Cache; 2,通过注解Cache可以实现类似于事务一样,缓存逻辑透明的应用到我们的业务代码上,且只需要更少的代码就可以完成; 3,提供事务回滚时也自动回滚缓存; 4,支持比较复杂的缓存逻辑; 以下以自己的某个模块 阅读全文
posted @ 2023-08-21 15:58 Smile☆ 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 前提是依赖必须导入: <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <version>2.2.0-beta2</version> </dependency> 导出 首先在自己的接口中创建一 阅读全文
posted @ 2023-08-21 12:20 Smile☆ 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1,首先创建一个空项目 里面 有两个服务 一个提供者 一个调用者 2,父工程的使用依赖 以及springBoot的父依赖 // springboot父工程 <parent> <artifactId>spring-boot-starter-parent</artifactId> <groupId>or 阅读全文
posted @ 2023-08-06 13:23 Smile☆ 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 使用依赖时 发现依赖有问题,回来检查发现没有 加springboot父工程 检查父模块是否加入父标签: 只需要在父模块中添加一次就可以了 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-star 阅读全文
posted @ 2023-08-06 11:14 Smile☆ 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 1,在数据库中设置该字段类型为 timestamp 2,设置默认值为 CURRENT_TIMESTAMP 3,更新字段需要点击勾选 根据当前时间戳更新 而创建时间是不需要勾选的 因为创建只需要一次 阅读全文
posted @ 2023-08-06 11:07 Smile☆ 阅读(149) 评论(0) 推荐(0) 编辑
摘要: PhpSpreadsheet是一个纯PHP编写的组件库,它使用现代PHP写法,代码质量和性能比PHPExcel高不少,完全可以替代PHPExcel(PHPExcel已不再维护)。使用PhpSpreadsheet可以轻松读取和写入Excel文档,支持Excel的所有操作。1. 初识PhpSpreads 阅读全文
posted @ 2022-10-23 17:57 Smile☆ 阅读(826) 评论(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:04 Smile☆ 阅读(50) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 8 下一页