摘要: version: '3.7' services: #mysql #服务名,自定义 mysql: image: mysql:5.7.25 container_name: mysql restart: always volumes: - /tmp/mysql/conf/hmy.cnf:/etc/mysq 阅读全文
posted @ 2022-09-15 12:27 linxiaofeng 阅读(10) 评论(0) 推荐(0) 编辑
摘要: Redis的数据类型 String 1.set name zhangsan 2.get name 3.setex name 5 zhangsan --设置时间为5秒 4.getset name zhangsan --给name设置值为张三,并且返回原来的值 5.setnx name zhangsan 阅读全文
posted @ 2022-09-07 20:58 linxiaofeng 阅读(13) 评论(0) 推荐(0) 编辑
摘要: package com.app.common.util; import java.text.DecimalFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Cale 阅读全文
posted @ 2022-09-02 15:30 linxiaofeng 阅读(25) 评论(0) 推荐(0) 编辑
摘要: <!-- 老师的私服,粘贴在pom.xml的projiect标签下 --> <repositories> <repository> <!-- 依赖仓库id,不可重复。repositories可以配置多个仓库,如果ID重复后面配置会覆盖之前的配置 --> <id>dependencies_Reposi 阅读全文
posted @ 2022-08-05 16:13 linxiaofeng 阅读(396) 评论(0) 推荐(0) 编辑
摘要: //【第二步】使用Spring整合Junit专用的类加载器 @RunWith(SpringJUnit4ClassRunner.class) //【第三步】加载配置文件或者配置类 @ContextConfiguration(classes = {SpringConfiguration.class}) 阅读全文
posted @ 2022-07-31 11:39 linxiaofeng 阅读(59) 评论(0) 推荐(0) 编辑
摘要: spring基础 <!--导入spring的坐标spring-context,对应版本是5.2.10.RELEASE--> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifact 阅读全文
posted @ 2022-07-29 11:46 linxiaofeng 阅读(152) 评论(0) 推荐(0) 编辑
摘要: <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.62</version> </dependency> 阅读全文
posted @ 2022-07-20 20:14 linxiaofeng 阅读(237) 评论(0) 推荐(0) 编辑
摘要: /* axios v0.18.0 | (c) 2018 by Matt Zabriskie */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeo 阅读全文
posted @ 2022-07-20 11:03 linxiaofeng 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 这是AJAX xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET", "http://localhost:8080/AJAXServlet", true); xmlhttp.send(); xmlhttp.onreadystatechange = fu 阅读全文
posted @ 2022-07-20 10:38 linxiaofeng 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 7.1 原理 浏览器如果能够解析目标资源,则直接打开;如果不能解析,则出现下载 7.2 如何实现下载 告知浏览器不要解析目标资源,那么这个目标资源就会被下载 //告知浏览器不要解析目标资源 response.setHeader("Content-Disposition","attachment;fi 阅读全文
posted @ 2022-07-15 13:42 linxiaofeng 阅读(110) 评论(0) 推荐(0) 编辑