摘要: Arrays.asList(T....a) new ArrayList<>(Arrays.asList()); Collections.addAll() *** Stream流 Arrays.asList(T....a) String[] strArrays = new String[]{"This 阅读全文
posted @ 2022-10-23 20:46 uhon 阅读(74) 评论(0) 推荐(0)
摘要: 过滤器实现过程: 答题实现步骤: 编写**Fiter.java 实现Filter接口 在启动项添加注解 @ServletComponentScan Filter 配置编写 @Slf4j @WebFilter(filterName = "LoginCheckFilter" ,urlPatterns = 阅读全文
posted @ 2022-10-21 16:22 uhon 阅读(121) 评论(0) 推荐(0)
摘要: web开发中,不可避免地是对静态资源的访问,Spring Boot默认的静态资源映射为三样: classpath:/META-INF/resources/ classpath:/resources/ classpath:/static/ classpath:/public/ / 项目的根路径 // 阅读全文
posted @ 2022-10-21 14:38 uhon 阅读(96) 评论(0) 推荐(0)
摘要: 静态资源映射器 注解 configuration 继承 WebMvcConfigurationSupport 实现addResourceHandlers方法 @Configuration public class WebMvcConfig extends WebMvcConfigurationSup 阅读全文
posted @ 2022-10-20 21:45 uhon 阅读(51) 评论(0) 推荐(0)
摘要: 记录第一次搭建Hadoop集群。 使用版本: Ubuntu:ubuntu-20.04.5-desktop-amd64.iso Hadoop:hadoop-2.7.5.tar.gz 对vim 的基本命令: 进入编辑状态:insert 删除:delete 退出编辑状态:ctrl+[ 进入保存状态:ctr 阅读全文
posted @ 2022-10-15 23:21 uhon 阅读(434) 评论(0) 推荐(0)