12 2020 档案

摘要:转载:https://juejin.cn/post/6911934186249158664 阅读全文
posted @ 2020-12-31 14:52 路要一步一步走 阅读(121) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.cn/post/6911976264827944974 阅读全文
posted @ 2020-12-31 14:50 路要一步一步走 阅读(62) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/R-S-PY/archive/2004/01/13/12154967.html 阅读全文
posted @ 2020-12-31 13:49 路要一步一步走 阅读(72) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.cn/post/6912242046484873224 阅读全文
posted @ 2020-12-31 13:37 路要一步一步走 阅读(69) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.cn/post/6912250865025810440 阅读全文
posted @ 2020-12-31 11:39 路要一步一步走 阅读(30) 评论(0) 推荐(0) 编辑
摘要:一般来说,准备MySQL面试,无非要从这几块进行准备: 查询 储存 事务 锁 性能调优 不少朋友苦于搜集资料耗时耗力,很难cover主面试官的考核角度。为了让大家在准备面试时少走弯路,这里小编熬夜一周为大家精心准备的一份MySQL核心技术思维导图以及各大厂MySQL面试的主流考点,经过多次迭代,最终 阅读全文
posted @ 2020-12-30 14:08 路要一步一步走 阅读(74) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.cn/post/6911874152953708558 阅读全文
posted @ 2020-12-30 13:55 路要一步一步走 阅读(55) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/bii_yu/article/details/85064213 阅读全文
posted @ 2020-12-30 10:57 路要一步一步走 阅读(1982) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/raorao1994/p/5090258.html 阅读全文
posted @ 2020-12-30 10:08 路要一步一步走 阅读(149) 评论(0) 推荐(0) 编辑
摘要:(?<=\()\S+(?=\))(?<=exp)是以exp开头的字符串, 但不包含本身.(?=exp)就匹配惟exp结尾的字符串, 但不包含本身.(?<=\() 也就是以括号开头, 但不包含括号.(?=\)) 就是以括号结尾\S 匹配任何非空白字符。等价于[^ \f\n\r\t\v]。+表示至少有一 阅读全文
posted @ 2020-12-30 09:56 路要一步一步走 阅读(853) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.imooc.com/article/257722 https://blog.csdn.net/xlgen157387/article/details/79840134 阅读全文
posted @ 2020-12-29 17:15 路要一步一步走 阅读(99) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.cn/post/6911555489067171853 阅读全文
posted @ 2020-12-29 16:34 路要一步一步走 阅读(52) 评论(0) 推荐(0) 编辑
摘要:转载:https://ask.csdn.net/questions/1010990 https://blog.csdn.net/flower_vip/article/details/71213656 阅读全文
posted @ 2020-12-29 12:29 路要一步一步走 阅读(1037) 评论(0) 推荐(0) 编辑
摘要:原因就是主项目的xml文件和库项目中的xml文件 命名一样,导致库项目中的xml文件被主项目覆盖,所以库项目就找不到xml中的相关id,就报异常了。 解决方法:修改主项目中的xml文件命名,不要和库项目中的文件名称一样,防止文件冲突。 转载于:https://www.cnblogs.com/tang 阅读全文
posted @ 2020-12-29 10:57 路要一步一步走 阅读(1316) 评论(0) 推荐(0) 编辑
摘要:fill()方法使用参考 声明举例: public static void fill(int[] a, form, to, int var) 参数: a--数组 form--替换开始位置(包括) to--替换结束位置(不包括) var--要替换的值 使用参考实例: public class Test 阅读全文
posted @ 2020-12-28 15:15 路要一步一步走 阅读(1844) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/anita9999/article/details/82346552 阅读全文
posted @ 2020-12-28 11:29 路要一步一步走 阅读(119) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/c-961900940/p/6197878.html 阅读全文
posted @ 2020-12-28 10:47 路要一步一步走 阅读(72) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/xiaosi_xiaosi/article/details/81336077 阅读全文
posted @ 2020-12-25 17:51 路要一步一步走 阅读(446) 评论(0) 推荐(0) 编辑
摘要:package com.neusoft.date; import java.util.Calendar;import java.util.Date;import java.util.GregorianCalendar; public class RiQi{ public static void ma 阅读全文
posted @ 2020-12-25 16:15 路要一步一步走 阅读(2969) 评论(0) 推荐(0) 编辑
摘要:一般用baifloat就可以满足要求,float和double都用来定du义浮点数,也就是小zhi数dao,两者就是有效位数不同,zhuanfloat为7-8位,double是15-16位,看你需shu要什么精确度的数了 float a = 2.111111111111111f;double b = 阅读全文
posted @ 2020-12-25 14:36 路要一步一步走 阅读(715) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/qinyuguan/p/11420022.html 阅读全文
posted @ 2020-12-25 10:57 路要一步一步走 阅读(114) 评论(0) 推荐(0) 编辑
摘要:=:应该相当于 a = :b 表明b是个绑定变量,需要执行时进行变量绑定 命名为 := 相当于一般编程语言中的 赋值 a := 1 即将 数字1赋值给变量 a 阅读全文
posted @ 2020-12-25 09:11 路要一步一步走 阅读(1515) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/cainiao_dashen/article/details/89671219 阅读全文
posted @ 2020-12-23 22:19 路要一步一步走 阅读(7086) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/tt_twilight/article/details/70859804 阅读全文
posted @ 2020-12-23 11:13 路要一步一步走 阅读(119) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/fly_fly_fly_pig/article/details/82740277 阅读全文
posted @ 2020-12-23 11:07 路要一步一步走 阅读(388) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/qq_18248667/article/details/89855001 阅读全文
posted @ 2020-12-23 10:09 路要一步一步走 阅读(646) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/magict/p/11181504.html 阅读全文
posted @ 2020-12-23 09:45 路要一步一步走 阅读(1756) 评论(0) 推荐(0) 编辑
摘要:s1.charAt(i)返回s1 i的第th个字符String. 假设此String仅包含小写字母(即'a'到'z'),s1.charAt(i)-'a'将字符'a'映射到索引0,将'b'映射到索引1,依此类推('z'映射到索引25) . a[s1.charAt(i)-'a']++; 递增与该字符对应 阅读全文
posted @ 2020-12-22 09:22 路要一步一步走 阅读(2524) 评论(1) 推荐(0) 编辑
摘要:转载:https://database.51cto.com/art/201108/286325.htm 阅读全文
posted @ 2020-12-21 16:30 路要一步一步走 阅读(94) 评论(0) 推荐(0) 编辑
摘要:第一种方法:提前return,减少else判断 优化前: private int handlePre1(boolean flag) { if (flag) { //do something } else { //do something return -1; } return 0; } 优化后: p 阅读全文
posted @ 2020-12-19 09:36 路要一步一步走 阅读(626) 评论(0) 推荐(0) 编辑
摘要:Mysql修改字段类型,修改字段名 mysql修改字段类型: --能修改字段类型、类型长度、默认值、注释 --对某字段进行修改 ALTER TABLE 表名 MODIFY COLUMN 字段名 新数据类型 新类型长度 新默认值 新注释; -- COLUMN可以省略 alter table table 阅读全文
posted @ 2020-12-18 09:37 路要一步一步走 阅读(9842) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/sinat_38259539/article/details/107552865 阅读全文
posted @ 2020-12-17 11:29 路要一步一步走 阅读(1921) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/jpfss/p/8918315.html 阅读全文
posted @ 2020-12-17 11:23 路要一步一步走 阅读(175) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/u012326462/article/details/82081756 阅读全文
posted @ 2020-12-16 20:22 路要一步一步走 阅读(89) 评论(0) 推荐(0) 编辑
摘要:public static void main(String[] args) { String str1="2.30"; BigDecimal bd=new BigDecimal(str1); System.out.println(bd); } 阅读全文
posted @ 2020-12-16 19:38 路要一步一步走 阅读(7746) 评论(0) 推荐(0) 编辑
摘要:// 四舍五入 BigDecimal value = new BigDecimal(object.toString()).setScale(2,BigDecimal.ROUND_HALF_UP); // 不足两位小数补0 DecimalFormat decimalFormat = new Decim 阅读全文
posted @ 2020-12-16 19:22 路要一步一步走 阅读(13056) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/m0_37044606/article/details/76461569 阅读全文
posted @ 2020-12-16 19:08 路要一步一步走 阅读(1658) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/shaoshuai95928/p/mysql.html 阅读全文
posted @ 2020-12-16 16:54 路要一步一步走 阅读(2043) 评论(0) 推荐(0) 编辑
摘要:1. 错误描述 使用SpringBoot集成MyBatis框架,并且使用 mapper-spring-boot-starter 自动生成MyBatis的mapper文件,使用 mybatis-generator-core 生成MyBatis的映射文件。 SpringBoot版本:2.0.0.RELE 阅读全文
posted @ 2020-12-16 14:51 路要一步一步走 阅读(766) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/sunayn/article/details/100161574 阅读全文
posted @ 2020-12-15 16:39 路要一步一步走 阅读(2256) 评论(0) 推荐(0) 编辑
摘要:转自:http://blog.csdn.net/for12/article/details/49300843 今天在共工作,做老项目维护的时候无意中发现一张表居然有三个主键。吓死宝宝了,然后尝试着建表建主键,但是都不能成功。 难道是我写的有问题,最后通过查资料总终于解决了。 1、数据库的每张表只能有 阅读全文
posted @ 2020-12-15 00:09 路要一步一步走 阅读(3907) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/qq_41723615/article/details/86721165 阅读全文
posted @ 2020-12-14 11:28 路要一步一步走 阅读(76) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.cn/post/6905908811165827085 阅读全文
posted @ 2020-12-14 11:05 路要一步一步走 阅读(48) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/suxiexingchen/article/details/84984349 阅读全文
posted @ 2020-12-11 16:25 路要一步一步走 阅读(9490) 评论(0) 推荐(0) 编辑
摘要:1、配置 进入file-setting 2、说明 勾选标注第1个选项,IDEA 自动帮我们导入需要用到的包。但是对于那些同名的包,还是需要手动 Alt + Enter 进行导入的 勾选标注第2个选项,IDEA自动帮我们优化导入的包,比如自动去掉一些没有用到的包。 阅读全文
posted @ 2020-12-11 14:26 路要一步一步走 阅读(1634) 评论(0) 推荐(1) 编辑
摘要:转载:https://blog.csdn.net/qq_37186947/article/details/102678701 一对多 MyBatis的resultMap只用于配置结果如何映射,id的唯一作用就是在嵌套的映射配置时判断数据是否相同,当配置id标签时,MyBatis只需要逐条比较所有数据 阅读全文
posted @ 2020-12-10 15:35 路要一步一步走 阅读(3679) 评论(0) 推荐(0) 编辑
摘要:Math.abs() 返回参数的绝对值。参数可以是 int, float, long, double, short, byte类型。 语法 各个类型的方法格式类似如下: double abs(double d) float abs(float f) int abs(int i) long abs(l 阅读全文
posted @ 2020-12-09 09:13 路要一步一步走 阅读(2485) 评论(0) 推荐(0) 编辑
摘要:mybatis 的if 比较标签在比较数值时可以这样写: <if test="value=0"> </if> 在比较字符串时可以这么写: <if test='str!=null and str!="" '> </if> 记得是外面是单引号,里面是双引号。 同时,字符串参数要设置getter 方法(我 阅读全文
posted @ 2020-12-08 18:25 路要一步一步走 阅读(5360) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/timo1160139211/article/details/78537289 阅读全文
posted @ 2020-12-08 13:59 路要一步一步走 阅读(1489) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/odeng888/article/details/81101914 阅读全文
posted @ 2020-12-08 09:56 路要一步一步走 阅读(1222) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/qq_38526573/article/details/91355785 阅读全文
posted @ 2020-12-08 09:49 路要一步一步走 阅读(1156) 评论(0) 推荐(0) 编辑
摘要:产生死锁的原因主要是: (1) 因为系统资源不足。 (2) 进程运行推进的顺序不合适。 (3) 资源分配不当等。 如果系统资源充足,进程的资源请求都能够得到满足,死锁出现的可能性就很低,否则 就会因争夺有限的资源而陷入死锁。其次,进程运行推进顺序与速度不同,也可能产生死锁。 产生死锁的四个必要条件: 阅读全文
posted @ 2020-12-08 09:27 路要一步一步走 阅读(1266) 评论(0) 推荐(0) 编辑
摘要:转载:https://my.oschina.net/619517865/blog/4617366 阅读全文
posted @ 2020-12-07 23:04 路要一步一步走 阅读(5840) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/rongxiang111/article/details/86476028 https://blog.csdn.net/who_is_xiaoming/article/details/52231031?utm_medium=distribute.pc 阅读全文
posted @ 2020-12-07 14:19 路要一步一步走 阅读(64) 评论(0) 推荐(0) 编辑
摘要:Commons Collections增强了Java集合框架。 它提供了几个功能来简化收集处理。 它提供了许多新的接口,实现和实用程序。 <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-collection 阅读全文
posted @ 2020-12-07 11:13 路要一步一步走 阅读(424) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/wynjauu/articles/9556396.html 阅读全文
posted @ 2020-12-07 10:52 路要一步一步走 阅读(72) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/yuhan_0590/article/details/85100246 阅读全文
posted @ 2020-12-07 10:46 路要一步一步走 阅读(150) 评论(0) 推荐(0) 编辑
摘要:1. 原始单据与实体之间的关系 表的设计有一对一、一对多、多对多的关系。大多数情况下表的设计为一对一关系:即一张原始单据对应且只对应一个实体。 在特殊情况下,它们可能是一对多或多对一的关系,即一张原始单证对应多个实体,或多张原始单证对应一个实体。这里的实体可以理解为基本表。 2. 主键与外键 一般而 阅读全文
posted @ 2020-12-04 16:25 路要一步一步走 阅读(792) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.cn/post/6902073994195763214 阅读全文
posted @ 2020-12-04 15:03 路要一步一步走 阅读(51) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.cn/post/6902035196502081543 阅读全文
posted @ 2020-12-04 14:31 路要一步一步走 阅读(95) 评论(0) 推荐(0) 编辑
摘要:转载:https://juejin.cn/post/6902046683375828999 阅读全文
posted @ 2020-12-04 14:19 路要一步一步走 阅读(126) 评论(0) 推荐(0) 编辑
摘要:查找指定字符或字符串在字符串中第一次出现地方的索引,未找到的情况返回 -1. 例如 String.indexOf(String str) String str1="012345"; String str2="23"; System.out.println( str1.indexOf(str2) ); 阅读全文
posted @ 2020-12-04 13:33 路要一步一步走 阅读(464) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/weixin_43691942/article/details/107591137 阅读全文
posted @ 2020-12-04 11:05 路要一步一步走 阅读(2778) 评论(0) 推荐(0) 编辑
摘要:PEXPIRE:https://www.runoob.com/redis/keys-pexpire.html Pttl:https://www.runoob.com/redis/keys-pexpire.html 阅读全文
posted @ 2020-12-04 10:57 路要一步一步走 阅读(54) 评论(0) 推荐(0) 编辑
摘要:https://github.com/redisson/redisson/wiki/%E7%9B%AE%E5%BD%95 阅读全文
posted @ 2020-12-04 10:43 路要一步一步走 阅读(301) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/liyulong1982/p/6013002.html https://juejin.cn/post/6901906815315869710 阅读全文
posted @ 2020-12-03 17:04 路要一步一步走 阅读(123) 评论(0) 推荐(0) 编辑
摘要:mysql CONCAT()函数用于将多个字符串连接成一个字符串,是最重要的mysql函数之一,下面就将为您详细介绍mysql CONCAT()函数,供您参考 mysql CONCAT(str1,str2,…) 返回结果为连接参数产生的字符串。如有任何一个参数为NULL ,则返回值为 NULL。或许 阅读全文
posted @ 2020-12-03 16:42 路要一步一步走 阅读(3358) 评论(0) 推荐(0) 编辑
摘要:转载:https://zhuanlan.zhihu.com/p/71156910 阅读全文
posted @ 2020-12-03 14:58 路要一步一步走 阅读(72) 评论(0) 推荐(0) 编辑
摘要:可重入锁又名递归锁,是指在同一个线程在外层方法获取锁的时候,再进入该线程的内层方法会自动获取锁(前提锁对象得是同一个对象或者class),不会因为之前已经获取过还没释放而阻塞。Java中ReentrantLock和synchronized都是可重入锁,可重入锁的一个优点是可一定程度避免死锁。 之前我 阅读全文
posted @ 2020-12-03 14:55 路要一步一步走 阅读(193) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.jianshu.com/p/47fd7f86c848 阅读全文
posted @ 2020-12-03 14:29 路要一步一步走 阅读(79) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/mwb2001/article/details/89706752 https://www.cnblogs.com/clnchanpin/p/6813273.html 阅读全文
posted @ 2020-12-03 10:22 路要一步一步走 阅读(105) 评论(0) 推荐(0) 编辑
摘要:String类中有一个bai方法 public boolean contains(Sting s)就是用du来判断当前字zhi符串是否含有参数指定的dao字符串例s1=“takecatb”zhuans2=“te”语句:s1.contains(s2) //s1调用这个方法shu若其值为ture说明s1 阅读全文
posted @ 2020-12-03 10:02 路要一步一步走 阅读(282) 评论(0) 推荐(0) 编辑
摘要:动态规划算法bai通常用于求解具du有某种最zhi优性质的问题。dao在这类问题中,zhuan可能会有许多可行shu解。每一个解都对应于一个值,我们希望找到具有最优值的解。动态规划算法与分治法类似,其基本思想也是将待求解问题分解成若干个子问题,先求解子问题,然后从这些子问题的解得到原问题的解。与分治 阅读全文
posted @ 2020-12-03 09:48 路要一步一步走 阅读(93) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/u013185616/article/details/52799166 阅读全文
posted @ 2020-12-03 09:27 路要一步一步走 阅读(109) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/kebibuluan/p/13265345.html 阅读全文
posted @ 2020-12-02 15:42 路要一步一步走 阅读(108) 评论(0) 推荐(0) 编辑
摘要:判断一个数是否是小数 判断一个数是否为小数 1、有且仅有一个小数点 2、小数点的左边可能为正数或负数 3、小数点的右边为正数 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 def is_float(str): if str.count('.') == 1: #小数有且 阅读全文
posted @ 2020-12-02 14:23 路要一步一步走 阅读(1179) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.runoob.com/java/number-sqrt.html 阅读全文
posted @ 2020-12-02 13:55 路要一步一步走 阅读(237) 评论(0) 推荐(0) 编辑
摘要:转载:http://www.zxdmrg.com/archives/16971093.html 阅读全文
posted @ 2020-12-01 22:37 路要一步一步走 阅读(95) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/lanxuezaipiao/p/3190673.html 阅读全文
posted @ 2020-12-01 17:58 路要一步一步走 阅读(30) 评论(0) 推荐(0) 编辑
摘要:EXPLAIN执行计划中type字段分为以下几种: ALL INDEX RANGE REF EQ_REF CONST,SYSTEM NULL 自上而下,性能从最差到最好 type = ALL,全表扫描,MYSQL扫描全表来找到匹配的行 (因为film表中rating不是索引) mysql> expl 阅读全文
posted @ 2020-12-01 16:53 路要一步一步走 阅读(1097) 评论(0) 推荐(0) 编辑
摘要:一、常用语句1、建索引create index 索引名 on 表名(索引名)2、删索引drop index 表名.索引名3、重建索引reorg rebuild 表名 索引名4、查看索引查看表结构包括索引:sp_help 表名查看索引:sp_helpindex 表名查看表、索引:SELECT TOP 阅读全文
posted @ 2020-12-01 16:35 路要一步一步走 阅读(796) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/weistin/article/details/79698996 阅读全文
posted @ 2020-12-01 16:33 路要一步一步走 阅读(383) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/zzxv587/article/details/89670393 阅读全文
posted @ 2020-12-01 08:39 路要一步一步走 阅读(126) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/wangyiyungw/article/details/80735639 阅读全文
posted @ 2020-12-01 08:38 路要一步一步走 阅读(187) 评论(0) 推荐(0) 编辑

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