05 2020 档案

摘要:项目demogitee地址:https://gitee.com/dsxiecn/spring-boot-demo.git Javaweb中获取文件的方式大致可以分为两种 通过nginx等反向代理的方式获取到静态文件资源 在web项目中配置文件映射 第一种方式有时间去整理,本文介绍第二种方式,通过在项 阅读全文
posted @ 2020-05-30 12:41 IT咸鱼圈 阅读(1391) 评论(0) 推荐(0)
摘要:源码中对于ThreadLocal类的解释是: /** * This class provides thread-local variables. These variables differ from * their normal counterparts in that each thread t 阅读全文
posted @ 2020-05-26 15:23 IT咸鱼圈 阅读(395) 评论(0) 推荐(0)
摘要:List家族中共两个常用的对象ArrayList和LinkedList,具有以下基本特征。 ArrayList:长于随机访问元素,中间插入和移除元素比较慢,在插入时,必须创建空间并将它的所有引用向前移动,这会随着ArrayList的尺寸增加而产生高昂的代价,底层由数组支持。 LinkedList:通 阅读全文
posted @ 2020-05-24 01:04 IT咸鱼圈 阅读(5212) 评论(0) 推荐(0)
摘要:1.String,StringBuffer和StringBuilder有什么区别? String是字符串常量,不可变对象,每次对String修改都等同于生成了一个新的String象,然后将指针指向新的String对象,经常修改的字符串最好不要用String,因为每次生成的对象都会对系统性能产生影响, 阅读全文
posted @ 2020-05-07 16:25 IT咸鱼圈 阅读(658) 评论(0) 推荐(0)
摘要:Spring Boot集成Shrio实现权限管理 项目地址:https://gitee.com/dsxiecn/spring-boot-shiro.git Apache Shiro是一个强大且易用的Java安全框架,执行身份验证、授权、密码和会话管理。相比于Spring Security,功能没有那 阅读全文
posted @ 2020-05-02 16:49 IT咸鱼圈 阅读(458) 评论(0) 推荐(0)