45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
server:
|
|
port: 8512
|
|
spring:
|
|
profiles:
|
|
active: dev
|
|
application:
|
|
name: service-user
|
|
|
|
cloud:
|
|
nacos:
|
|
discovery:
|
|
namespace: ${bunny.nacos.discovery.namespace}
|
|
server-addr: ${bunny.nacos.server-addr}
|
|
|
|
datasource:
|
|
type: com.zaxxer.hikari.HikariDataSource
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: jdbc:mysql://${bunny.datasource.host}:${bunny.datasource.port}/${bunny.datasource.sqlData}?serverTimezone=GMT%2B8&useSSL=false&characterEncoding=utf-8&allowPublicKeyRetrieval=true
|
|
username: ${bunny.datasource.username}
|
|
password: "${bunny.datasource.password}"
|
|
|
|
data:
|
|
redis:
|
|
host: ${bunny.redis.host}
|
|
port: ${bunny.redis.port}
|
|
database: ${bunny.redis.database}
|
|
|
|
logging:
|
|
level:
|
|
com.atguigu.spzx.user.mapper: debug
|
|
com.atguigu.spzx.user.controller: info
|
|
com.atguigu.spzx.user.service: info
|
|
pattern:
|
|
dateformat: HH:mm:ss:SSS
|
|
file:
|
|
path: "logs/${spring.application.name}"
|
|
|
|
mybatis:
|
|
type-aliases-package: com.atguigu.spzx.model
|
|
mapper-locations: classpath:/mapper/*.xml
|
|
configuration:
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
map-underscore-to-camel-case: true
|
|
auto-mapping-behavior: full
|