增加说明 优化配置

This commit is contained in:
zhouhao
2017-08-31 17:36:00 +08:00
parent 7c061964aa
commit 41ff05dfd3
6 changed files with 66 additions and 3 deletions

View File

@@ -46,4 +46,19 @@ where name like ? or full_name like
```sql
--u_id in (用户可访问的机构id)
where u_id in(?,?,?) and (name like ? or full_name like)
```
# 会话状态
此模块默认使用sessionId绑定用户信息。还可以使用 [jwt](../hsweb-authorization-jwt) 方式
# 跨域设置
修改application.yml
```yaml
hsweb:
cors:
enabled: on
allowed-origins: "*"
allowed-methods: "*"
allowed-headers: "*"
```

View File

@@ -0,0 +1,3 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.hswebframework.web.authorization.basic.configuration.CorsAutoConfiguration