mystyle-cloud-parent/mystyle-cloud-admin-manager/src/main/resources/application.yml

87 lines
2.0 KiB
YAML
Raw Normal View History

2021-11-01 06:44:56 +00:00
server:
2021-11-01 08:34:08 +00:00
port: 31003
2021-11-01 06:44:56 +00:00
spring:
application:
name: mystyle-cloud-admin-manager
datasource:
username: root
password: root
url: jdbc:mysql://127.0.0.1:3306/mystyle-blog?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
database: mysql
hibernate:
ddl-auto: update
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
show-sql: true
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL5Dialect
zipkin:
sender:
type: web
base-url: http://localhost:9411/
service:
2021-11-04 04:10:12 +00:00
name: mystyle-cloud-admin-manager
2021-11-01 06:44:56 +00:00
sleuth:
sampler:
probability: 1
cloud:
nacos:
discovery:
server-addr: 127.0.0.1:8848
2021-11-04 10:41:02 +00:00
freemarker:
suffix: .ftl
check-template-location: true
content-type: text/html
charset: UTF-8
template-loader-path: classpath:/templates/
cache: false
enabled: true
request-context-attribute: request
2021-11-04 04:10:12 +00:00
feign:
sentinel:
enabled: true
2021-11-01 06:44:56 +00:00
mybatis:
type-aliases-package: com.zhangmeng.model.entity
configuration:
mapUnderscoreToCamelCase: true
default-enum-type-handler: org.apache.ibatis.type.EnumOrdinalTypeHandler
mapper:
style: normal
enum-as-simple-type: true
identity: MYSQL
2021-11-04 04:10:12 +00:00
check-example-entity-class: true
mystyle:
security:
open-api:
2021-11-09 02:23:55 +00:00
- /login
2021-11-04 10:41:02 +00:00
- /favicon.ico # 开放FAVICON
2021-11-09 02:23:55 +00:00
- /system/**
2021-11-04 10:41:02 +00:00
#验证码
- /verificationCode/**
2021-11-08 09:48:47 +00:00
#swagger-ui.html
- /swagger-ui.html
- /swagger-ui/**
- /swagger-resources/**
- /v2/api-docs
- /v3/api-docs
- /doc.html
- /webjars/**
2021-11-16 10:26:52 +00:00
- /actuator/**
- /instances/**
2021-11-04 10:41:02 +00:00
verification-code:
type: mysql
expiration-time: 300
2021-11-16 10:26:52 +00:00
redis-key: redis-29b9f4ddcf8072d2f856a67f76957821
management:
endpoints:
web:
exposure:
include: '*'
endpoint:
health:
show-details: ALWAYS
enabled: true