10 2020 档案

摘要:转载:https://blog.csdn.net/weixin_45768481/article/details/106268129 阅读全文
posted @ 2020-10-29 14:22 路要一步一步走 阅读(84) 评论(0) 推荐(0) 编辑
摘要:-开头的行,是只bai出现在源文件du中的zhi行dao +开头的行回,是只出现在目标文答件中的行 空格开头的行,是源文件和目标文件中都出现的行 差异按照差异小结进行组织,每个差异小结的第一行都是定位语句,由@@开头,@@结尾。 -2,3 +2,4 在源文件( a/LICENSE)第二行开始的三行, 阅读全文
posted @ 2020-10-29 14:03 路要一步一步走 阅读(1102) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.runoob.com/git/git-tag.html 阅读全文
posted @ 2020-10-29 13:54 路要一步一步走 阅读(78) 评论(0) 推荐(0) 编辑
摘要:虚悬镜像(dangling image): 镜像没有仓库名或没有标签 查询显示虚悬镜像 docker images -f dangling=true 删除虚悬镜像 docker rmi $(docker images -q -f dangling=true) 阅读全文
posted @ 2020-10-29 13:37 路要一步一步走 阅读(323) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.linuxprobe.com/soft-hard-links-comments.html 阅读全文
posted @ 2020-10-29 13:25 路要一步一步走 阅读(67) 评论(0) 推荐(0) 编辑
摘要:<<表示左移移,不分正负数,低位补0; 注:以下数据类型默认为byte-8位 左移时不管正负,低位补0 正数:r = 20 << 2 20的二进制补码:0001 0100 向左移动两位后:0101 0000 结果:r = 80 负数:r = -20 << 2 -20 的二进制原码 :1001 010 阅读全文
posted @ 2020-10-29 09:23 路要一步一步走 阅读(138) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/lixpjita39/article/details/90041583 阅读全文
posted @ 2020-10-29 08:57 路要一步一步走 阅读(72) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/feiduxin/article/details/79042185 阅读全文
posted @ 2020-10-28 19:52 路要一步一步走 阅读(88) 评论(0) 推荐(0) 编辑
摘要:1、查询所有记录db.userInfo.find();相当于:select* from userInfo; 2、查询去掉后的当前聚集集合中的某列的重复数据db.userInfo.distinct("name");会过滤掉 name 中的相同数据相当于:select distict name from 阅读全文
posted @ 2020-10-28 16:13 路要一步一步走 阅读(283) 评论(0) 推荐(0) 编辑
摘要:MySQL是关系型数据库。 优势: 在不同的引擎上有不同 的存储方式。 查询语句是使用传统的sql语句,拥有较为成熟的体系,成熟度很高。 开源数据库的份额在不断增加,mysql的份额页在持续增长。 缺点: 在海量数据处理的时候效率会显著变慢。 Mongodb是非关系型数据库(nosql ),属于文档 阅读全文
posted @ 2020-10-28 16:03 路要一步一步走 阅读(3718) 评论(0) 推荐(0) 编辑
摘要:常用函数 字符串函数1)ISNULL(EXP1,EXP2,EXP3,...) :返回第一个非空值,用法与COALESCE(exp1,exp2[,exp3...])相同3)TRIM(exp) :去除两边空格4)DATEFORMAT(date_exp,date_format) :日期型转字符型;5)ST 阅读全文
posted @ 2020-10-28 09:03 路要一步一步走 阅读(286) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/qq_31071543/article/details/87088515?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~first_rank_v2~rank_v 阅读全文
posted @ 2020-10-27 14:41 路要一步一步走 阅读(622) 评论(0) 推荐(0) 编辑
摘要:https://github.com/TProgram/mall-app-web 阅读全文
posted @ 2020-10-27 08:59 路要一步一步走 阅读(95) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/heioray/p/9392533.html 阅读全文
posted @ 2020-10-26 17:54 路要一步一步走 阅读(95) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/niugang0920/article/details/90516898 阅读全文
posted @ 2020-10-26 17:46 路要一步一步走 阅读(1174) 评论(0) 推荐(0) 编辑
摘要:问题描述 mysql中对于UPDATE_TIME字段我们有时候会设置ON UPDATE CURRENT_TIMESTAMP,表示在数据库数据有更新的时候UPDATE_TIME的时间会自动更新(如果数据库数据值没有变化的话,UPDATE_TIME是不会自动更新的)。那么假设一个场景,我们有一个长事务有 阅读全文
posted @ 2020-10-26 10:20 路要一步一步走 阅读(1340) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/shouke/p/10158018.html 阅读全文
posted @ 2020-10-26 10:11 路要一步一步走 阅读(60) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/dousil/p/12855468.html 阅读全文
posted @ 2020-10-23 13:30 路要一步一步走 阅读(276) 评论(0) 推荐(0) 编辑
摘要:mysql字段加反引号的目的 https://www.cnblogs.com/yangzailu/p/6694000.html https://blog.csdn.net/youcijibi/article/details/77965487?locationNum=7&fps=1 阅读全文
posted @ 2020-10-22 10:49 路要一步一步走 阅读(200) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/weixin_33973600/article/details/91757104 阅读全文
posted @ 2020-10-22 10:09 路要一步一步走 阅读(119) 评论(0) 推荐(0) 编辑
摘要:一、概述 数据库锁定机制简单来说,就是数据库为了保证数据的一致性,而使各种共享资源在被并发访问变得有序所设计的一种规则。对于任何一种数据库来说都需要有相应的锁定机制,所以MySQL自然也不能例外。MySQL数据库由于其自身架构的特点,存在多种数据存储引擎,每种存储引擎所针对的应用场景特点都不太一样, 阅读全文
posted @ 2020-10-22 09:35 路要一步一步走 阅读(480) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.jianshu.com/p/d2ac26ca6525 阅读全文
posted @ 2020-10-22 09:30 路要一步一步走 阅读(64) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/u012326462/article/details/81349157 阅读全文
posted @ 2020-10-22 09:23 路要一步一步走 阅读(250) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/qq_37465368/article/details/82908646 阅读全文
posted @ 2020-10-20 10:06 路要一步一步走 阅读(621) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/zy987654zy/article/details/105434002 阅读全文
posted @ 2020-10-19 21:25 路要一步一步走 阅读(187) 评论(0) 推荐(0) 编辑
摘要:https://github.com/judasn/IntelliJ-IDEA-Tutorial 阅读全文
posted @ 2020-10-19 14:20 路要一步一步走 阅读(85) 评论(0) 推荐(0) 编辑
摘要:转载:https://mp.weixin.qq.com/s/s_dKL9aAFXgtQi0VO1Ovdw https://github.com/macrozheng/mall 阅读全文
posted @ 2020-10-19 13:56 路要一步一步走 阅读(195) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/u010359884/article/details/50310387 阅读全文
posted @ 2020-10-19 10:36 路要一步一步走 阅读(85) 评论(0) 推荐(0) 编辑
摘要:缓存分为本地缓存和分布式缓存。以java为例,使用自带的map或者guava实现的是本地缓存,最主要的特点是轻量以及快速,生命周期随着jvm的销毁而结束,并且在多实例的情况下,每个实例都需要各自保存一份缓存,缓存不具有一致性。 使用redis或memcached之类的称为分布式缓存,在多实例的情况下 阅读全文
posted @ 2020-10-19 10:32 路要一步一步走 阅读(564) 评论(0) 推荐(0) 编辑
摘要:JUnit4使用Java5中的注解(annotation),以下是JUnit4常用的几个annotation: @Before:初始化方法 对于每一个测试方法都要执行一次(注意与BeforeClass区别,后者是对于所有方法执行一次)@After:释放资源 对于每一个测试方法都要执行一次(注意与Af 阅读全文
posted @ 2020-10-19 10:30 路要一步一步走 阅读(639) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/XWForever/article/details/103163021 阅读全文
posted @ 2020-10-19 08:47 路要一步一步走 阅读(1284) 评论(0) 推荐(0) 编辑
摘要:appendReplacement是java中替换相应字符串的一个方法 appendReplacement(StringBuffer sb,String replacement) 将当前匹配子串替换为指定字符串,并且将替换后的子串以及其之前到上次匹配子串之后的字符串段添加到一个 StringBuff 阅读全文
posted @ 2020-10-18 21:11 路要一步一步走 阅读(732) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/weixin_42586723/article/details/108715588 SelectKey需要注意order属性,像Mysql一类支持自动增长类型的数据库中,order需要设置为after才会取到正确的值。 像Oracle这样取序列的情况,需要 阅读全文
posted @ 2020-10-17 22:49 路要一步一步走 阅读(1177) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/wan06092151/article/details/84368311 阅读全文
posted @ 2020-10-17 22:39 路要一步一步走 阅读(2514) 评论(0) 推荐(0) 编辑
摘要:开门见山的说,平时写模糊查询,一直用${name},例如: 1 select * from table where name like '%${name}%' 后来知道了,这样写可能会引发sql注入,于是乎,要用到这样一个标签 bind,经过改正上面的sql可以变成 1 2 <bind name=" 阅读全文
posted @ 2020-10-17 22:16 路要一步一步走 阅读(510) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.im/post/6883857443982409742 阅读全文
posted @ 2020-10-16 15:33 路要一步一步走 阅读(535) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.im/post/6883840383688638471 阅读全文
posted @ 2020-10-16 12:28 路要一步一步走 阅读(62) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.im/post/6883685077167898637 阅读全文
posted @ 2020-10-16 10:02 路要一步一步走 阅读(69) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/u013295276/article/details/79105163 阅读全文
posted @ 2020-10-15 16:52 路要一步一步走 阅读(58) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.im/post/6883270227078070286 阅读全文
posted @ 2020-10-15 16:39 路要一步一步走 阅读(51) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.im/post/6883489768336801805 阅读全文
posted @ 2020-10-15 16:26 路要一步一步走 阅读(218) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.im/post/6883416374576840718 https://www.cnblogs.com/shenxiaoquan/p/5727241.html https://www.cnblogs.com/LemonFive/p/10983875.html 阅读全文
posted @ 2020-10-15 16:03 路要一步一步走 阅读(82) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.im/post/6883444167041613832 阅读全文
posted @ 2020-10-15 13:29 路要一步一步走 阅读(388) 评论(0) 推荐(0) 编辑
摘要:Sybase字符串函数 datalength(char_expr) 在char_expr中返回字符的长度值,忽略尾空 substring(expression,start,length) 返回部分字符串 right(char_expr,int_expr) 返回char_expr右边的int_expr 阅读全文
posted @ 2020-10-15 11:16 路要一步一步走 阅读(487) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/u014379639/article/details/90369231 https://blog.csdn.net/qq_29410905/article/details/80325095 mybatis 映射文件中,if标签判断字符串相等,两种方式 阅读全文
posted @ 2020-10-14 21:39 路要一步一步走 阅读(1052) 评论(0) 推荐(0) 编辑
摘要:以下是java.math.BigDecimal.compareTo()方法的声明 public int compareTo(BigDecimal val) 参数: val-- 要与此BigDecimal比较的值。 返回值: 此方法,如果小于val返回-1,如果大于val返回1,如果BigDecima 阅读全文
posted @ 2020-10-14 14:52 路要一步一步走 阅读(5495) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/yanghj/p/12005130.html#_label1 阅读全文
posted @ 2020-10-14 14:49 路要一步一步走 阅读(167) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/insis_mo/article/details/92760527 FastJson的使用方法: 在bean中的定义属性上面使用注解@JSONField ,然后JSON.toJSONString()返回即可 使用SimplePropertyPreFilte 阅读全文
posted @ 2020-10-14 11:29 路要一步一步走 阅读(1195) 评论(0) 推荐(0) 编辑
摘要:@RequestHeader 是获取请求头中的数据,通过指定参数 value 的值来获取请求头中指定的参数值。其他参数用法和 @RequestParam 完全一样,请参考 @RequestParam 的章节:使用 @RequestParam 将请求参数绑定至方法参数 下面举一个 基本使用 的例子: 阅读全文
posted @ 2020-10-14 09:43 路要一步一步走 阅读(5178) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.jianshu.com/p/91fa3d2ac892 阅读全文
posted @ 2020-10-12 18:44 路要一步一步走 阅读(77) 评论(0) 推荐(0) 编辑
摘要:转载:cnblogs.com/rouqinglangzi/p/8848607.html 阅读全文
posted @ 2020-10-12 17:44 路要一步一步走 阅读(72) 评论(0) 推荐(0) 编辑
摘要:假如有那么残酷的一天,我不小心喝错了一瓶药,一下子抹掉了我这十多年的编程经验,把我变成了一只小白。我想自学 Java,并且想要找到一份工作,我预计需要 6 个月的时间,前提条件是每天都处于高效率的学习状态当中,并且每天的学习时间至少在 12 个小时以上。 即便是这样,我敢肯定,找到的工作肯定不会太好 阅读全文
posted @ 2020-10-12 17:32 路要一步一步走 阅读(123) 评论(0) 推荐(0) 编辑
摘要:@GetMapping(value = "/user") 和 @GetMapping(value = "user") 的区别 1、带上 “/” 是绝对路径,不带 “/” 是相对路径。 2、这个"/" 其实起到连接作用, 如果只是单纯的一个地址,写不写 “/” 都可以。 如果控制器最外层有一层映射地址 阅读全文
posted @ 2020-10-12 14:45 路要一步一步走 阅读(649) 评论(0) 推荐(1) 编辑
摘要:Spring程序会按优先级从下面这些路径来加载application.properties配置文件 当前目录下的/config目录 当前目录 classpath里的/config目录 classpath 跟目录 因此,要外置配置文件就很简单了,在jar所在目录新建config文件夹,然后放入配置文件 阅读全文
posted @ 2020-10-12 13:28 路要一步一步走 阅读(1667) 评论(0) 推荐(1) 编辑
摘要:转载:https://blog.csdn.net/qq360694660/article/details/82877222 阅读全文
posted @ 2020-10-12 11:40 路要一步一步走 阅读(122) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/neweastsun/article/details/78775371 阅读全文
posted @ 2020-10-12 11:38 路要一步一步走 阅读(450) 评论(0) 推荐(0) 编辑
摘要:多在mapper接口写@Param注解, 那么,你在mapper.xml alt+/会有提示 为什么不写parameterType也可以运行成功? 因为mybatis能自动识别,但返回值类型不能不写 (idea-mybatis插件也不生成parameterType,刚好,以后推荐不写paramete 阅读全文
posted @ 2020-10-10 20:22 路要一步一步走 阅读(4726) 评论(0) 推荐(0) 编辑
摘要:1) 使用#{参数}传入会加上单引号,sql语句解析是会加上"", 比如 select * from table where name = #{name} ,传入的name为小李,那么最后打印出来的就是 select * from table where name = ‘小李’,就是会当成字符串来解 阅读全文
posted @ 2020-10-10 20:18 路要一步一步走 阅读(1741) 评论(0) 推荐(0) 编辑
摘要:解决方法:移除工程目录/.mvn/maven-wrapper.properties 文件即可 阅读全文
posted @ 2020-10-10 19:22 路要一步一步走 阅读(875) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/qq_37675827/article/details/77978505 阅读全文
posted @ 2020-10-10 12:15 路要一步一步走 阅读(236) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/qq_18630487/article/details/107514568 阅读全文
posted @ 2020-10-09 13:47 路要一步一步走 阅读(6039) 评论(0) 推荐(0) 编辑
摘要:Mybatis逆向生成代码避免tinyint生成Boolean 1.tinyint长度设为2(不建议),对于is_delete类似字段,一位就够了 2.在链接数据库的url加 ?tinyInt1isBit=false" 会生成Byte,默认这个属性是true 阅读全文
posted @ 2020-10-09 12:25 路要一步一步走 阅读(669) 评论(0) 推荐(0) 编辑
摘要:测试增强for循环是否需要判断为null 例1: public static void main(String[] args) { List<Object> list = null; for(Object s : list){ System.out.println("a"); } } 例2 publ 阅读全文
posted @ 2020-10-09 11:00 路要一步一步走 阅读(1070) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/qlqwjy/p/10551283.html 阅读全文
posted @ 2020-10-09 10:28 路要一步一步走 阅读(115) 评论(0) 推荐(0) 编辑

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