Commit ed768bc litongjava
committed
1 parent d8c33a5 commit ed768bc Copy full SHA for ed768bc
File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 19
19
- ` tio.mvc.request.printReport ` :设置是否打印请求信息。这通常在开发环境下使用,以便于跟踪和调试。
20
20
- ` http.multipart.max-request-size ` : 设置请求体的大小
21
21
- ` http.multipart.max-file-size ` : 设置上传文件的大小
22
+ - ` tio.http.request.printUrl ` : 打印请求地址
22
23
- ` app.env ` :定义应用的运行环境。根据 ` app.env ` 的不同值,可以加载不同的配置文件,以适应不同的开发、测试或生产环境。
23
24
24
25
tio-boot 配置参考源码 com.litongjava.tio.boot.constatns.ConfigKeys
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ public class SaTokenConfiguration {
75
75
import com.litongjava.jfinal.aop.annotation.AConfiguration ;
76
76
import com.litongjava.jfinal.aop.annotation.AInitialization ;
77
77
import com.litongjava.tio.boot.http.interceptor.HttpServerInterceptorModel ;
78
+ import com.litongjava.tio.boot.http.interceptor.ServerInteceptorConfigure ;
78
79
import com.litongjava.tio.boot.satoken.SaTokenInterceptor ;
79
80
import com.litongjava.tio.boot.server.TioBootServer ;
80
81
@@ -90,11 +91,15 @@ public class InterceptorConfiguration {
90
91
model. addblockeUrl(" /**" ); // 拦截所有路由
91
92
model. addAlloweUrls(" /register/*" , " /auth/*" ); // 设置例外路由
92
93
94
+ ServerInteceptorConfigure serverInteceptorConfigure = new ServerInteceptorConfigure ();
95
+ serverInteceptorConfigure. add(model);
93
96
// 将拦截器配置添加到 Tio 服务器
94
- TioBootServer . getServerInteceptorConfigure (). add(model );
97
+ TioBootServer . me (). setServerInteceptorConfigure(serverInteceptorConfigure );
95
98
}
96
99
}
97
100
101
+
102
+
98
103
```
99
104
100
105
#### 实现登录和登出逻辑
You can’t perform that action at this time.
0 commit comments