mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-05-21 07:15:59 +08:00
增加说明 优化配置
This commit is contained in:
@@ -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: "*"
|
||||
|
||||
```
|
||||
@@ -0,0 +1,3 @@
|
||||
# Auto Configure
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
org.hswebframework.web.authorization.basic.configuration.CorsAutoConfiguration
|
||||
Reference in New Issue
Block a user