This commit is contained in:
2026-04-29 14:58:02 +08:00
parent e729f9bd31
commit b98c66ca21
370 changed files with 55094 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
server.port: 8080
solon.app:
name: demoapp
group: demo
# 基于 header 传(适合接口开发,每次会自动输出[可改为手动])
solon.env: dev
solon.output.meta: 1
server.session:
timeout: 7200 #单位秒;(可不配,默认:7200
state:
jwt:
name: TOKEN #变量名;(可不配,默认:TOKEN
secret: "E3F9N2kRDQf55pnJPnFoo5+ylKmZQ7AXmWeOVPKbEd8=" #密钥(使用 JwtUtils.createKey() 生成);(可不配,默认:xxx)
prefix: Bearer #令牌前缀(可不配,默认:空)
allowExpire: true #充许超时;(可不配,默认:true);false,则token一直有效
allowAutoIssue: true #充许自动输出;(可不配,默认:true);flase,则不向header 或 cookie 设置值(由用户手动控制)
allowUseHeader: true #充许使用Header传递;(可不配,默认:使用 Cookie 传递);true,则使用 header 传递