Skip to content

Commit 60dab47

Browse files
author
boyunkai
committed
[feature] 添加 ActiveMQ 策略
1 parent c6bdad2 commit 60dab47

2 files changed

Lines changed: 34 additions & 2 deletions

File tree

09mq/activemq-demo/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ mybatis:
2323

2424
建议不要在创建表的过程中使用mysql保留字,避免后期造成麻烦
2525

26+
### 3.[(选做)将上述订单处理场景,改成使用 ActiveMQ 发送消息处理模式。](src/main/java/io/byk/queue/order)
27+
2628
#### ActiveMQ序列化异常Forbidden class ! This class is not trusted to be serialized as ObjectMessage payload
2729

2830
`application.yml`文件下添加配置信息:
@@ -37,5 +39,4 @@ spring:
3739
enabled: false
3840
packages:
3941
trust-all: true
40-
```
41-
42+
```
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
Navicat Premium Data Transfer
3+
4+
Source Server : root
5+
Source Server Type : MySQL
6+
Source Server Version : 80022
7+
Source Host : localhost:3306
8+
Source Schema : java_study
9+
10+
Target Server Type : MySQL
11+
Target Server Version : 80022
12+
File Encoding : 65001
13+
14+
Date: 08/02/2021 09:45:24
15+
*/
16+
17+
SET NAMES utf8mb4;
18+
SET FOREIGN_KEY_CHECKS = 0;
19+
20+
-- ----------------------------
21+
-- Table structure for order_list
22+
-- ----------------------------
23+
DROP TABLE IF EXISTS `order_list`;
24+
CREATE TABLE `order_list` (
25+
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
26+
`order_id` varchar(100) NOT NULL COMMENT '订单ID',
27+
`status_id` int NOT NULL COMMENT '状态 0-未处理 1-已处理',
28+
PRIMARY KEY (`id`)
29+
) ENGINE=InnoDB AUTO_INCREMENT=2951 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='订单表';
30+
31+
SET FOREIGN_KEY_CHECKS = 1;

0 commit comments

Comments
 (0)