项目管理库/诺唯赞CRM项目/CRM模块拆解分析/国际化组件.md updated
This commit is contained in:
parent
e09c35b04a
commit
482225ee1b
@ -5,8 +5,8 @@
|
||||
## 使用方法
|
||||
|
||||
1. 以组件方式引入在当前 springboot 工程引入 组件包
|
||||
```
|
||||
这里输入代码 <dependency>
|
||||
``` xml
|
||||
<dependency>
|
||||
<groupId>net.rzdata</groupId>
|
||||
<artifactId>rz-i18n</artifactId>
|
||||
<version>0.0.2-SNAPSHOT</version>
|
||||
@ -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='国际化';
|
||||
```
|
||||
|
||||
## 运行截图:#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
|
||||
<!--stackedit_data:
|
||||
eyJoaXN0b3J5IjpbLTE3ODYwOTYwODUsMTM0MTIzMDk1NF19
|
||||
eyJoaXN0b3J5IjpbLTExMzc0NTc2NTksMTM0MTIzMDk1NF19
|
||||
-->
|
Loading…
x
Reference in New Issue
Block a user