online-exam/src/main/resources/application.yml

46 lines
1.2 KiB
YAML

server:
port: 8080
spring:
application:
name: online-exam
datasource:
username: root
password: root
url: jdbc:mysql://127.0.0.1:3306/online-exam?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
# format_sql: true
token:
jwt-secret: zhangmeng
exper-time: 6000
jwt:
security:
login-page: /login
login-url: /login
logout-url: logout
authentication-entry-point-msg: 请先登录后,在进行访问
open-api:
- /
- /login/**
- /system/**
- /verificationCode/generate
- /css/**
- /js/**
- /editor/**
- /swagger-ui.html
- /swagger-ui/**
- /swagger-resources/**
- /v2/api-docs
- /v3/api-docs
- /doc.html
- /webjars/**
- /favicon.ico # ??FAVICON