From 482225ee1b6a4dd51113a8fcd7cee3586abbdd8d Mon Sep 17 00:00:00 2001 From: huangjinyan Date: Mon, 26 Feb 2024 16:49:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86=E5=BA=93/?= =?UTF-8?q?=E8=AF=BA=E5=94=AF=E8=B5=9ECRM=E9=A1=B9=E7=9B=AE/CRM=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=8B=86=E8=A7=A3=E5=88=86=E6=9E=90/=E5=9B=BD?= =?UTF-8?q?=E9=99=85=E5=8C=96=E7=BB=84=E4=BB=B6.md=20updated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CRM模块拆解分析/国际化组件.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/项目管理库/诺唯赞CRM项目/CRM模块拆解分析/国际化组件.md b/项目管理库/诺唯赞CRM项目/CRM模块拆解分析/国际化组件.md index b77a750..98fa31b 100644 --- a/项目管理库/诺唯赞CRM项目/CRM模块拆解分析/国际化组件.md +++ b/项目管理库/诺唯赞CRM项目/CRM模块拆解分析/国际化组件.md @@ -5,8 +5,8 @@ ## 使用方法 1. 以组件方式引入在当前 springboot 工程引入 组件包 -``` -这里输入代码 +``` xml + net.rzdata rz-i18n 0.0.2-SNAPSHOT @@ -16,7 +16,7 @@ 3. 组件包扫描包 - +``` java @ComponentScan(basePackages = {"org.example","com.blueland"}) @MapperScan(basePackages = {"org.example","com.blueland.common.core.mapper"}) @EnableAutoConfiguration @@ -26,10 +26,10 @@ } ​ } - +``` . 增加配置文件 application.yml - +``` yml server: port: 8080 servlet: @@ -71,10 +71,10 @@ api-rule: package api-rule-resources: - com.blueland.common.core.controller - +``` 5. 创建数据库表: - +```sql CREATE TABLE `t_international` ( `id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '唯一ID', `code` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '国际化编码', @@ -88,6 +88,7 @@ `update_time` datetime DEFAULT NULL COMMENT '更新时间', KEY `idx_code` (`code`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='国际化'; +``` ## 运行截图:![输入图片说明](![输入图片说明](/imgs/2024-02-26/ikb68J8TnjxnFA2y.png)![image.png](https://cdn.nlark.com/yuque/0/2024/png/26863921/1708918222284-94896b8a-4c4c-4ab8-b228-8fa689d780e2.png?x-oss-process=image%2Fresize%2Cw_750%2Climit_0)#averageHue=#2f2e2d&clientId=uf576b4f5-f628-4&from=paste&height=718&id=u972a6e59&originHeight=718&originWidth=1723&originalType=binary&ratio=1&rotation=0&showTitle=false&size=221205&status=done&style=none&taskId=u51532904-5ba5-4f01-aa5d-7cf98118a94&title=&width=1723) @@ -103,5 +104,5 @@ 请求前端接口:**GET** /crm-internation/international/findLangPackage header: tenantid:MID 参数: type:back \ No newline at end of file