54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
|
server:
|
||
|
port: 8080
|
||
|
spring:
|
||
|
application:
|
||
|
name: hm-service
|
||
|
profiles:
|
||
|
active: local
|
||
|
datasource:
|
||
|
url: jdbc:mysql://${hm.db.host}:3306/hmall?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai
|
||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
|
username: root
|
||
|
password: ${hm.db.pw}
|
||
|
mybatis-plus:
|
||
|
configuration:
|
||
|
default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler
|
||
|
global-config:
|
||
|
db-config:
|
||
|
update-strategy: not_null
|
||
|
id-type: auto
|
||
|
logging:
|
||
|
level:
|
||
|
com.hmall: debug
|
||
|
pattern:
|
||
|
dateformat: HH:mm:ss:SSS
|
||
|
file:
|
||
|
path: "logs/${spring.application.name}"
|
||
|
knife4j:
|
||
|
enable: true
|
||
|
openapi:
|
||
|
title: 黑马商城接口文档
|
||
|
description: "黑马商城接口文档"
|
||
|
email: zhanghuyi@itcast.cn
|
||
|
concat: 虎哥
|
||
|
url: https://www.itcast.cn
|
||
|
version: v1.0.0
|
||
|
group:
|
||
|
default:
|
||
|
group-name: default
|
||
|
api-rule: package
|
||
|
api-rule-resources:
|
||
|
- com.hmall.controller
|
||
|
hm:
|
||
|
jwt:
|
||
|
location: classpath:hmall.jks
|
||
|
alias: hmall
|
||
|
password: hmall123
|
||
|
tokenTTL: 30m
|
||
|
auth:
|
||
|
excludePaths:
|
||
|
- /search/**
|
||
|
- /users/login
|
||
|
- /items/**
|
||
|
- /hi
|
||
|
# keytool -genkeypair -alias hmall -keyalg RSA -keypass hmall123 -keystore hmall.jks -storepass hmall123
|