明天的太阳

导航

2023年11月9日

Spring Boot中使用RabbitMQ完成延迟功能

摘要: MQ-消息队列简单来说就是将“消息”放到“队列”中,然后慢慢处理队列中的消息。 完成延迟功能总体的思路是将消息放到队列中,为消息设置过期时间,不直接处理这个队列中的消息, 等到消息过期,将它转到另一个队列进行处理,从而完成延迟功能。 基本概念 1. 队列 队列是RabbitMQ的内部对象,用来存储消 阅读全文

posted @ 2023-11-09 17:57 东方来客 阅读(2) 评论(0) 推荐(0) 编辑

2023年11月7日

微信小程序【同城配送】及【加密请求】

摘要: 在小程序后台配置API安全时注意保存密钥,要不然还得重新弄。 封装属性配置类,在加解密的时候会用到 封装加解密方法 使用okhttp封装post加密请求,并将信息解密 调用post方法将必要信息加密后发送给微信并得到相应,对其解密 对信息进行业务处理 封装属性配置类 创建一个config.prope 阅读全文

posted @ 2023-11-07 18:37 东方来客 阅读(32) 评论(0) 推荐(0) 编辑

2023年8月29日

使用APIv3 Java SDK接入微信小程序支付

摘要: 这里使用的是apiv3的0.2.10版本。 <dependency> <groupId>com.github.wechatpay-apiv3</groupId> <artifactId>wechatpay-java</artifactId> <version>0.2.10</version> </d 阅读全文

posted @ 2023-08-29 16:38 东方来客 阅读(756) 评论(0) 推荐(0) 编辑

2023年3月21日

【vue-blog】从SCF改为tsx

摘要: 修改tsconfig.json { // ... "compilerOptions": { // 增加对jsx的支持 "jsx": "preserve" }, // ... } 创建tsx文件 1. index.tsx import {defineComponent} from 'vue'; exp 阅读全文

posted @ 2023-03-21 17:17 东方来客 阅读(58) 评论(0) 推荐(0) 编辑

2023年3月20日

【vue-blog】从vue2升级到vue3

摘要: 添加vite.config.js import {fileURLToPath, URL} from 'node:url' import {defineConfig} from 'vite' import vue from '@vitejs/plugin-vue' import vueJsx from 阅读全文

posted @ 2023-03-20 20:30 东方来客 阅读(95) 评论(1) 推荐(1) 编辑

2023年3月10日

【shop-部署】Redis ZooKeeper Docker nginx

摘要: 配置Java环境 下载jdkwget https://d6.injdk.cn/oraclejdk/8/jdk-8u341-linux-x64.tar.gz tar xf jdk-8u341-linux-x64.tar.gz 将其解压。 设置JAVA_HOME vi ~/.bashrc添加 expor 阅读全文

posted @ 2023-03-10 00:10 东方来客 阅读(30) 评论(0) 推荐(0) 编辑

2023年2月17日

【shop-3】Checkstyle、SpotBugs、jacoco、单元测试、集成测试

摘要: 配置Checkstyle代码规范检查工具 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>3.2.1</version> <c 阅读全文

posted @ 2023-02-17 22:51 东方来客 阅读(30) 评论(0) 推荐(0) 编辑

2023年2月14日

【shop-2】使用shiro实现登录

摘要: 本次commit代码 引入依赖 引入shiro <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-core</artifactId> <version>1.5.3</version> </dependency> <d 阅读全文

posted @ 2023-02-14 22:20 东方来客 阅读(20) 评论(0) 推荐(0) 编辑

2023年2月12日

TypeScript 高级类型

摘要: 类型的且运算 interface A { a1: string a2: string } interface B { b1: number b2: string } let c: A & B = { a1: 'hi', a2: 'hello', b1: 2, b2: 'a' } // react c 阅读全文

posted @ 2023-02-12 23:53 东方来客 阅读(24) 评论(0) 推荐(0) 编辑

【shop-1】使用Spring Initializr初始化项目,配置使用flyway和MyBatis Generator

摘要: 初始化项目 使用Spring Initializr 选择依赖 MyBatis Framework JDBC API MySQL Driver Spring Web 填写其他必要信息后,点击GENERATE得到代码。 flyway 引入flyway </dependencies> <dependenc 阅读全文

posted @ 2023-02-12 15:53 东方来客 阅读(60) 评论(0) 推荐(0) 编辑