摘要: 2、 全局共享,注意线程安全问题 Interceptor 是全局共享的,所以如果要在其中使用属性需要保证其属性是线程安全的,如下代码将是错误的: public class MyInterceptor implements Interceptor { private int value = 123; 阅读全文
posted @ 2023-09-28 21:42 听着DJ读童话 阅读(12) 评论(0) 推荐(0)