-
Notifications
You must be signed in to change notification settings - Fork 176
/
Copy pathapplication-example.yml
60 lines (60 loc) · 1.79 KB
/
application-example.yml
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
server:
#服务器端口
port: 26666
spring:
#数据库连接配置
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://数据库地址:3306/数据库名称?characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
username: 数据库用户名
password: 数据库密码
main:
allow-bean-definition-overriding: true
mvc: #静态资源
static-path-pattern: /static/**
throw-exception-if-no-handler-found: true
hiddenmethod:
filter:
enabled: true
thymeleaf:
prefix: classpath:/templates/ #在构建URL时预先查看名称的前缀
suffix: .html #构建URL时附加到查看名称的后缀
cache: false
actable:
table:
auto: update
model:
#分号或者逗号隔开
pack: com.oldwu.entity;com.oldwu.domain;com.netmusic.model;com.miyoushe.model;com.bili.model
database:
type: mysql
index:
#自己定义的索引前缀#该配置项不设置默认使用actable_idx_
prefix: INDEX_
unique:
#自己定义的唯一约束前缀#该配置项不设置默认使用actable_uni_
prefix: INDEX_UNIQUE_
# mybatis自有的配置信息,key也可能是:mybatis.mapperLocations
mybatis-plus:
global-config:
db-config:
id-type: auto
#mapper配置文件
mapper-locations: classpath:mapper/*.xml,classpath:mapper/**/*.xml,classpath*:com/gitee/sunchenbin/mybatis/actable/mapping/*/*.xml
type-aliases-package: com.oldwu.entity
#开启驼峰命名
configuration:
map-underscore-to-camel-case: true
#输出mybatis日志
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
#推送代理
proxy:
push:
enable: false
port: 7890
ip: 127.0.0.1
type: http/socket
#指定那种推送方式需要使用代理
use:
- TelegramPush
- DiscordPush