56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
|
|
spring:
|
||
|
|
application:
|
||
|
|
name: ota-server
|
||
|
|
datasource:
|
||
|
|
url: jdbc:mysql://127.0.0.1:3306/ota_server?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
|
||
|
|
username: root
|
||
|
|
password: 123456
|
||
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
|
|
|
||
|
|
server:
|
||
|
|
port: 8080
|
||
|
|
|
||
|
|
ota:
|
||
|
|
auth-token: f47ac10b-58cc-4372-a567-0e02b2c3d479
|
||
|
|
heartbeat-timeout-seconds: 120
|
||
|
|
cors:
|
||
|
|
allowed-origins:
|
||
|
|
- http://localhost:5173
|
||
|
|
- http://127.0.0.1:5173
|
||
|
|
allowed-methods:
|
||
|
|
- GET
|
||
|
|
- POST
|
||
|
|
- PUT
|
||
|
|
- DELETE
|
||
|
|
- OPTIONS
|
||
|
|
allowed-headers:
|
||
|
|
- "*"
|
||
|
|
allow-credentials: true
|
||
|
|
|
||
|
|
sa-token:
|
||
|
|
token-name: X-OTA-TOKEN
|
||
|
|
token-prefix: ""
|
||
|
|
timeout: 1800
|
||
|
|
active-timeout: -1
|
||
|
|
is-concurrent: true
|
||
|
|
is-share: true
|
||
|
|
is-log: true
|
||
|
|
token-style: uuid
|
||
|
|
is-read-header: true
|
||
|
|
is-read-cookie: false
|
||
|
|
is-read-body: false
|
||
|
|
is-read-param: false
|
||
|
|
|
||
|
|
mybatis-plus:
|
||
|
|
configuration:
|
||
|
|
map-underscore-to-camel-case: true
|
||
|
|
global-config:
|
||
|
|
db-config:
|
||
|
|
id-type: auto
|
||
|
|
|
||
|
|
management:
|
||
|
|
endpoints:
|
||
|
|
web:
|
||
|
|
exposure:
|
||
|
|
include: health,info
|