10 2022 档案

摘要://上下文 @Resource private ApplicationContext applicationContext; @Bean public void test(){ //扫描Controller Reflections reflections = new Reflections("com 阅读全文
posted @ 2022-10-31 11:05 鱼鱼寡欢 阅读(467) 评论(0) 推荐(0) 编辑
摘要:<!-- redis依赖 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> @Compo 阅读全文
posted @ 2022-10-19 14:30 鱼鱼寡欢 阅读(72) 评论(0) 推荐(0) 编辑
摘要:String url = "https://www.baidu.com"; HttpHeaders headers = new HttpHeaders(); //设置请求头,自己从浏览器复制一个,如果请求的网站没要求也可以不设置 headers.set("user-agent", "..."); / 阅读全文
posted @ 2022-10-17 16:48 鱼鱼寡欢 阅读(453) 评论(0) 推荐(0) 编辑
摘要:Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.YEAR, year); calendar.set(Calendar.MONTH, month - 1); //月份要-1,因为Calendar中一到十二月是0-11 阅读全文
posted @ 2022-10-17 14:21 鱼鱼寡欢 阅读(166) 评论(0) 推荐(0) 编辑
摘要:1 docker使用nginx部署vue项目 1.1 打包vue项目 npm run build vue项目路径下会增加一个dist文件夹,里面就是网页文件 1.2 使用docker 拉取nginx docker pull nginx 1.3 运行nginx docker run --name ng 阅读全文
posted @ 2022-10-13 17:24 鱼鱼寡欢 阅读(313) 评论(0) 推荐(0) 编辑
摘要:HSSF 是Horrible SpreadSheet Format的缩写,也即“讨厌的电子表格格式”。 也许HSSF的名字有点滑稽,就本质而言它是一个非常严肃、正规的API。通过HSSF,你可以用纯Java代码来读取、写入、修改Excel文件。 1 创建对象 HSSFWorkbook workboo 阅读全文
posted @ 2022-10-13 16:23 鱼鱼寡欢 阅读(1174) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示