增加starter的说明

This commit is contained in:
zhouhao
2018-09-25 10:07:24 +08:00
parent 7bc521f182
commit e63cb07adf

View 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
```