Explorar o código

增加starter的说明

zhouhao %!s(int64=6) %!d(string=hai) anos
pai
achega
e63cb07adf
Modificáronse 1 ficheiros con 30 adicións e 0 borrados
  1. 30 0
      hsweb-starter/hsweb-spring-boot-starter/README.md

+ 30 - 0
hsweb-starter/hsweb-spring-boot-starter/README.md

@@ -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
+```