| 1234567891011121314151617181920212223242526272829303132333435363738 |
- server:
- address: ":8201"
- serverRoot: "resource/public"
- dumpRouterMap: true
- routeOverWrite: true
- openapiPath: "/api.json"
- swaggerPath: "/swagger"
- NameToUriType: 3
- maxHeaderBytes: "20KB"
- clientMaxBodySize: "50MB"
- # Logging配置
- logPath: "resource/log/server" # 日志文件存储目录路径,建议使用绝对路径。默认为空,表示关闭
- logStdout: true # 日志是否输出到终端。默认为true
- errorStack: true # 当Server捕获到异常时是否记录堆栈信息到日志中。默认为true
- errorLogEnabled: true # 是否记录异常日志信息到日志中。默认为true
- errorLogPattern: "error-{Ymd}.log" # 异常错误日志文件格式。默认为"error-{Ymd}.log"
- accessLogEnabled: true # 是否记录访问日志。默认为false
- accessLogPattern: "access-{Ymd}.log" # 访问日志文件格式。默认为"access-{Ymd}.log"
- logger:
- path: "resource/log/run"
- file: "{Y-m-d}.log"
- level: "all"
- stdout: true
- # CLI.
- gfcli:
- gen:
- dao:
- - link: "mysql:root:123456@tcp(127.0.0.1:3306)/gfast-v3"
- tables: "sys_user"
- removePrefix: "gf_"
- descriptionTag: true
- noModelComment: true
- path: "./internal/app/system"
|