Java基础
蓝色最有调
这个作者很懒,什么都没留下…
展开
-
mysql8.0 修改密码
mysql 密码原创 2022-08-11 10:26:57 · 163 阅读 · 1 评论 -
java 之 无序集合set HashSet
java set hashSet原创 2022-06-16 11:54:53 · 387 阅读 · 0 评论 -
正则?=和?<=取引号内数据,不带引号
例 <div class=“app app–light”> 正则 (?<=").*(?="). 表示除 \n以外的任意字符表示*号前边的字符会出现0次或多次(?<=x) 的作用是 取x后的数据 x等同于正则内的双引号(?=x) 的作用是取x之前的数据,...原创 2021-11-09 17:22:33 · 223 阅读 · 0 评论 -
java 自定义注解加 aop 实现日志功能
//定义注释 @QswdLog 设置成员属性 描述 和 类型 import java.lang.annotation.ElementType;import java.lang.annotation.Retention;import java.lang.annotation.RetentionPolicy;import java.lang.annotation.Target;@Target(ElementType.METHOD)@Retention(RetentionPolicy.RUN.原创 2021-01-19 17:32:30 · 261 阅读 · 0 评论 -
java 通过url 下载文件 中文路径下载 浏览器响应
@RequestMapping("/downloadFile.html")public void downloadFile(String fileName, HttpServletResponse response) throws IOException { response.setHeader("Content-type", "application-download"); // 下边放文件链接 URL FileUrl = new URL(NormalStaticData.VI.原创 2020-12-24 13:43:01 · 581 阅读 · 1 评论 -
java 正则 group批量获取
public static List<String> regularexpression(String pattern, String str) { List<String> list = new ArrayList<String>(); Pattern r = Pattern.compile(pattern); Matcher matcher = r.matcher(str); if (matcher.find()) { .原创 2020-12-04 14:33:39 · 270 阅读 · 0 评论 -
正则获取 网址中的 图片
分两步 1 先获取html里面的 img <img.*?/> . 2 获取img里面的内容 src=".*?" 搞定.原创 2020-11-23 18:25:46 · 83 阅读 · 0 评论 -
正则表达?
刚开始学正则表达式的时候一脸懵逼,看了好久的的基础语法结果还是一头雾水.就总结两点举栗说明下原创 2020-11-23 18:17:13 · 73 阅读 · 0 评论 -
java 上传文件图片 3点要素总结
看了几篇博客,每一篇都说很多个人感觉有点累赘。我总结了3点。1<form action="!#" method="post" class="row" id="productAdd" enctype="multipart/form-data"><input type="file" class="form-control" id="tp" name="tp" value=""/> </from> 。form 上加enctype="multipar...原创 2020-11-06 16:45:38 · 248 阅读 · 0 评论 -
java 获取String字符串内的数字
//获取完整的数字 如 Str12end91 numList = 12,91 stringList = Str,end --没有优化不喜勿喷public static void getpmandxjpl(String pmStr) { //接收字符串内的数字 List<String> numList = new ArrayList<String>(); List<String> stringList = new Ar..原创 2020-10-15 17:59:42 · 749 阅读 · 0 评论