-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathappsettings.json
70 lines (66 loc) · 1.69 KB
/
appsettings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
// Host 监听规则
"urls": "http://*:7000",
// 应用程序名称
"AppName": "Dragon.Samples.WepApi",
// 数据库
"Data": {
// 默认使用的连接配置键名
"DefaultConnectionName": "default",
// 连接串集合
"ConnectionStrings": {
// 默认(读串)
"default": {
// 连接串
"ConnectionString": "server=127.0.0.1;Database=mytest;UID=root;PWD=root;SslMode=None;",
// 数据库类型(默认MySql)
// MySql|SqlServer
"DatabaseProviderType": "MySql"
}
//,
// 写串
//"write": {
// "ConnectionString": "server=;Database=;UID=;PWD=;Charset=utf8;SslMode=None;",
// "DatabaseProviderType": "SqlServer"
//}
},
// Dapper 配置
"Dapper": {
// 数据库映射策略(默认Underline)
// Underline|PascalCase
"DbIdentifierMappingStrategy": "Underline",
// 大小写规则(默认LowerCase)
// LowerCase|UpperCase|Original
"CapitalizationRule": "LowerCase"
}
},
// 缓存
"Cache": {
// Redis配置
"Redis": {
// IP,必须
"Host": "127.0.0.1",
// 端口,必须
"Port": 6379,
// 密码,必须
"Password": "rQw@VzjA$106",
// Key的区域区分系统,必须
"Region": "Dragon.Samples.WepApi",
// DB下标,不配置则默认0
"Db": 0
}
},
"RabbitMQ": {
// RabbitMQ默认配置
"Default": {
// Uri,必须
"Uri": "127.0.0.1",
// 用户名,必须
"Username": "username",
// 密码,必须
"Password": "123456",
// Exchange,必须
"Exchange": "test"
}
}
}