11 2022 档案

摘要:最常用的是String,但是String比较占用内存资源; StringBuilder和StringBuffer只保存值,比较节省内存资源; StringBuilder的速度要高于StringBuffer,但是StringBuilder线程不安全,StringBuffer是线程安全的; 如果要使用S 阅读全文
posted @ 2022-11-29 23:44 每日一小步 阅读(12) 评论(0) 推荐(0) 编辑
摘要:[^/]+[0-9a-zA-Z]+\\.+\\w+ 匹配链接中的资源名称和后缀名:[^/]+[0-9a-zA-Z]+\\.+\\w+此表达式有问题,只要是前面是字符串,后面是.xxx都会给匹配上,目前能力有限无法优化,只能在代码中操作取自己需要的部分 阅读全文
posted @ 2022-11-28 18:20 每日一小步 阅读(12) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://www.jianshu.com/p/cd8bc8d92ea6 mkdirs()可以建立多级文件夹, mkdir()只会建立一级的文件夹, 如下: new File("/tmp/one/two/three").mkdirs(); 执行后, 会建立tmp/one/two/thr 阅读全文
posted @ 2022-11-26 16:41 每日一小步 阅读(92) 评论(0) 推荐(0) 编辑
摘要:原文连接:https://www.cnblogs.com/qilj/p/11935272.html 例:/upload/activity/xueba/20161025/091909_ce15d6bf-1089-4002-9ff6-016e13e420e5.gif 1,获取图片名称 正则表达式:[^\ 阅读全文
posted @ 2022-11-26 14:21 每日一小步 阅读(582) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://www.jb51.net/article/232182.htm 1.以流的方式下载 public HttpServletResponse download(String path, HttpServletResponse response) { try { // path是 阅读全文
posted @ 2022-11-26 12:12 每日一小步 阅读(497) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://www.cnblogs.com/zhangdongfang/p/12346883.html 1.引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-sta 阅读全文
posted @ 2022-11-21 22:26 每日一小步 阅读(67) 评论(0) 推荐(0) 编辑
摘要:eslint插件会检测是否写了分号,写了分号就报错,那么我们就设置一个文件 ".prettierrc" 文件在里面写 "semi": false 从而在格式化代码的时候自动将分号去掉; 写 "singleQuote": true 将双引号全部改成单引号 VSCode格式化代码快捷键是shift+al 阅读全文
posted @ 2022-11-21 11:58 每日一小步 阅读(77) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/wanghuohuo1998/article/details/118087204 需要授权的 API ,必须在请求头中使用 添加字段 需要授权的 API ,必须在请求头中使用 Authorization 字段提供 token 令牌 实现方法 通过 阅读全文
posted @ 2022-11-20 18:36 每日一小步 阅读(336) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <script src="https://cdn.jsdelivr.net/npm/vue@2.7.10/dist/vue.js"></script> <title>Docu 阅读全文
posted @ 2022-11-17 17:12 每日一小步 阅读(22) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <script src="https://cdn.jsdelivr.net/npm/vue@2.7.10/dist/vue.j 阅读全文
posted @ 2022-11-17 16:08 每日一小步 阅读(12) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-11-17 15:40 每日一小步 阅读(18) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-11-17 12:20 每日一小步 阅读(21) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-11-16 22:33 每日一小步 阅读(21) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-11-16 17:47 每日一小步 阅读(16) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-11-16 15:49 每日一小步 阅读(21) 评论(0) 推荐(0) 编辑
摘要:课程地址:https://www.bilibili.com/video/BV1Zy4y1K7SH/ 一个属性只能被一个Vue表达式管理,如下面代码中的{{name}}(其中{{}}是插值表达式),如果定义两个Vue来管理其中的name,则会报错 设置Vue.config.productionTip= 阅读全文
posted @ 2022-11-16 15:29 每日一小步 阅读(27) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/m0_59183852/article/details/126981557 刚开始用这个插件,我就遇到了一个问题:使用该插件对代码进行调试的时候,发现如何点击<Root>都没有反应。这个问题不是每一个宝宝都会遇到的,但恰好被我遇上了。 热爱前端的 阅读全文
posted @ 2022-11-16 15:06 每日一小步 阅读(878) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/yjd0504/article/details/121309202 使用ESLint校验Vue项目时,发现如下警告: error: Newline required at end of file but not found (eol-last) 阅读全文
posted @ 2022-11-15 16:05 每日一小步 阅读(437) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/u011523953/article/details/106771868 1、问题原因:使用eslint时,严格模式下,报错Missing space before function parentheses(函数括号前缺少空格)的问题 2、问题解 阅读全文
posted @ 2022-11-15 01:07 每日一小步 阅读(732) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/m0_67676064/article/details/126861235 vue刚创建完就报错Component name “home“ should always be multi-word.eslintvue/multi-word-comp 阅读全文
posted @ 2022-11-15 01:05 每日一小步 阅读(775) 评论(0) 推荐(0) 编辑
摘要:在Windows中,vscode格式化代码快捷键是“Shift+Alt+F”; 在Mac中,vscode格式化代码快捷键是“Shift+Option+F”; 在Ubuntu中,vscode格式化代码快捷键是“Ctrl+Shift+I” 阅读全文
posted @ 2022-11-14 23:54 每日一小步 阅读(355) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/m0_67495466/article/details/124133275 阅读全文
posted @ 2022-11-13 23:51 每日一小步 阅读(17) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/Aangle-long/p/11600966.html 安装npm install时,长时间停留在fetchMetadata: xxxxxx处, 是数据源的问题,下载太慢了 更换成淘宝的源就行了 npm config set registry http 阅读全文
posted @ 2022-11-13 23:50 每日一小步 阅读(338) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/zlfprogram/article/details/78189878 跟java.lang这个包的作用类似,Commons Lang这一组API也是提供一些基础的、通用的操作和处理,如自动生成toString()的结果、自动实现hashCode 阅读全文
posted @ 2022-11-09 11:51 每日一小步 阅读(221) 评论(0) 推荐(0) 编辑
摘要:链接:https://www.jianshu.com/p/ccdd16ae4025 阅读全文
posted @ 2022-11-07 22:42 每日一小步 阅读(16) 评论(0) 推荐(0) 编辑
摘要:MySQL版本8.0.24 Linux版本CentOS7.0.4 摆置了老长时间,终于弄好了。由于想到本人记性不好,害怕下一次遇到这种问题无法及时解决,所以给这回的解决办法记录下来,以便避坑。如果有网友也遇到这种情况,你也可以按照这个方法试一试,说不定能处理好。 步骤:咱先给 skip-grant- 阅读全文
posted @ 2022-11-07 19:07 每日一小步 阅读(743) 评论(0) 推荐(0) 编辑
摘要:链接:https://blog.csdn.net/qq_36756682/article/details/109647266 阅读全文
posted @ 2022-11-07 12:31 每日一小步 阅读(43) 评论(0) 推荐(0) 编辑
摘要:链接:https://www.cnblogs.com/yaohy/p/16229857.html 阅读全文
posted @ 2022-11-07 12:04 每日一小步 阅读(5) 评论(0) 推荐(0) 编辑
摘要:链接:https://blog.51cto.com/369369/790921 阅读全文
posted @ 2022-11-07 00:15 每日一小步 阅读(5) 评论(0) 推荐(0) 编辑
摘要://mysql8.0之前版本。设置主库grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option; //mysql8.0以及之后版本。设置主库create user 'root'@'%'iden 阅读全文
posted @ 2022-11-06 22:47 每日一小步 阅读(14) 评论(0) 推荐(0) 编辑
摘要:链接:https://blog.csdn.net/m0_70556273/article/details/126490767 阅读全文
posted @ 2022-11-06 22:33 每日一小步 阅读(15) 评论(0) 推荐(0) 编辑
摘要:链接:https://blog.csdn.net/qq_52572621/article/details/127105324 阅读全文
posted @ 2022-11-06 22:29 每日一小步 阅读(20) 评论(0) 推荐(0) 编辑
摘要:链接:https://www.jianshu.com/p/2759f872689a mysql远程连接权限 grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘123456‘ with grant option; 语句报错 这条语句适用于 阅读全文
posted @ 2022-11-06 21:22 每日一小步 阅读(443) 评论(0) 推荐(0) 编辑
摘要:链接:https://blog.csdn.net/qq_30180559/article/details/83628616 1. 在两台服务商分别按照好宝塔 及其数据库 2.分别在两台服务器上创建数据库 2.1 假设一号服务器:192.168.0.1 二号服务器:192.168.0.2 2.3 对于 阅读全文
posted @ 2022-11-06 18:50 每日一小步 阅读(493) 评论(0) 推荐(0) 编辑
摘要:链接:https://www.pudn.com/news/632ae4752aaf6043c9a3c611.html 查看镜像是否拉取成功 docker images 借助镜像创建两个mysql容器(注:要放行端口,我这里是3339和3340) docker run -p 3339:3306 --n 阅读全文
posted @ 2022-11-06 16:16 每日一小步 阅读(145) 评论(0) 推荐(0) 编辑

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