mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-20 10:42:15 +08:00
增加starter的说明
This commit is contained in:
30
hsweb-starter/hsweb-spring-boot-starter/README.md
Normal file
30
hsweb-starter/hsweb-spring-boot-starter/README.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# 应用基本信息配置
|
||||
|
||||
```yaml
|
||||
hsweb:
|
||||
app:
|
||||
name: my-application
|
||||
comment: 我的应用
|
||||
version: 1.0.0
|
||||
auto-init: true # 启动服务时进行初始化(执行classpath*:/hsweb-starter.js)
|
||||
```
|
||||
|
||||
# 跨域设置
|
||||
修改application.yml
|
||||
```yaml
|
||||
hsweb:
|
||||
cors:
|
||||
enable: true
|
||||
allowed-headers: "*"
|
||||
allowed-methods: "*"
|
||||
allowed-origins: "*"
|
||||
allow-credentials: true
|
||||
max-age: 14400
|
||||
```
|
||||
|
||||
# json序列化配置
|
||||
|
||||
```yaml
|
||||
fastjson:
|
||||
features: WriteNullListAsEmpty,WriteNullNumberAsZero,WriteNullBooleanAsFalse
|
||||
```
|
||||
Reference in New Issue
Block a user