https://blog.csdn.net/CHZKAL/article/details/90406309
compile 'com.github.bumptech.glide:glide:3.7.0'
Glide作用將網絡圖片資源加載到組件中。
Glide加載圖片時有兩級緩存機制,第一級內存緩存,第二級硬盤緩存。將資源緩存后,再次加載資源先從內存緩存中查找,再從硬盤緩存中查找,都不存在才會從網上獲取。
Glide的基本使用:Glide.with( Activity activity ).load( Url url ).into( View view );
如果不想加載緩存的圖片,應該設置跳過內存緩存,並不在硬盤內進行緩存
Glide.with(AddComActivity.this)
.load(imgSave)
.skipMemoryCache(true)//跳過內存緩存
.diskCacheStrategy(DiskCacheStrategy.NONE)//不要在disk硬盤緩存
.into(imgAddCom);
<session-config>
<session-timeout>60</session-timeout>
</session-config>這里的60就是60分鍾。
<session-timeout>60</session-timeout>
</session-config>這里的60就是60分鍾。
HttpSession session=request.getSession(true);
session.setMaxInactiveInterval(3600);//3600秒,注意服務器端的3600秒,而不是客戶端
session.setMaxInactiveInterval(3600);//3600秒,注意服務器端的3600秒,而不是客戶端