You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
789 B
31 lines
789 B
server:
|
|
port: 8080
|
|
|
|
spring:
|
|
application:
|
|
name: code-generator
|
|
|
|
# 配置文件
|
|
config:
|
|
import: optional:file:./generator-config.yml
|
|
|
|
# 数据源配置(如果需要连接数据库)
|
|
datasource:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: ${generator.datasource.url:jdbc:mysql://47.119.165.234:3308/modules?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai}
|
|
username: ${generator.datasource.username:modules}
|
|
password: ${generator.datasource.password:8YdLnk7KsPAyDXGA}
|
|
|
|
# 日志配置
|
|
logging:
|
|
level:
|
|
com.generator: DEBUG
|
|
root: INFO
|
|
pattern:
|
|
console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"
|
|
|
|
# Swagger配置
|
|
springfox:
|
|
documentation:
|
|
swagger-ui:
|
|
enabled: true
|