/* 题目: 寻找递增数组0~n-1中缺失的数字。 */ /* 思路: 变形二分法。 */ #include<iostream> #include<cstring> #include<vector> #include<algorithm> #include<map> using namespace ...
分类:
其他好文 时间:
2019-12-23 22:43:06
阅读次数:
102
在spring事务中针对注解transaction,我们在定义的时候会注明事物的传播类别,默认的是required。 required:使用当前的事务,如果当前没有事务,则自己新建一个事务,子方法必须运行在一个事务,如果当前存在事务,则加入这个事务,成为一个整体。 ex:领导没饭吃,我有钱,我自己买 ...
分类:
编程语言 时间:
2019-12-23 17:01:52
阅读次数:
87
错误: $ make menuconfig *** Unable to find the ncurses libraries or the *** required header files. *** 'make menuconfig' requires the ncurses libraries. ...
分类:
其他好文 时间:
2019-12-23 15:02:58
阅读次数:
73
一、环境准备 1 部署环境: 服务器数量:3台 Ip地址:192.168.1.191(主) 192.168.1.192(从) 192.168.1.193(从) 操作系统:CentOS Linux release 7.6.1810 (Core) Cpu:2核 内存:4G 存储20GB 2 部署前准备工 ...
分类:
数据库 时间:
2019-12-23 13:24:32
阅读次数:
115
如题,启动springboot报错: 我们看到mysql连接依赖的jar包mysql-connector-java的版本是8.0.17,而我用的mysql是5.1.37版本的,改下试试: 在pom文件制定版本后重新打包部署,这次spring boot启动ok了。 ...
分类:
数据库 时间:
2019-12-23 12:57:50
阅读次数:
1450
解决方法: 在maven地址(如一般默认的地址C:\Users\Administrator\.m2\repository\)找到对应包名 加后缀名为.lastUpdated文件(如:ojdbc14.lastUpdated),删除,或整个包文件都删除。 进到eclipse右击项目maven updat ...
分类:
其他好文 时间:
2019-12-22 00:20:50
阅读次数:
74
Description Description Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is count ...
分类:
其他好文 时间:
2019-12-21 22:27:54
阅读次数:
111
浅谈在ASP.NET MVC3中使用IClientValidatable接口实现客户端和服务器端同时验证 例如:Range、RegularExpression、Required、StringLength等验证属性,这些属性极大的方便了服务器端的验证,同时我们还可以自定义验证属性来满足我们特殊的需求, ...
分类:
Web程序 时间:
2019-12-21 15:54:07
阅读次数:
103
链接: https://codeforces.com/contest/1278/problem/C 题意: Karlsson has recently discovered a huge stock of berry jam jars in the basement of the house. Mo ...
分类:
其他好文 时间:
2019-12-21 12:08:12
阅读次数:
71
一、背景 集群是二进制部署 部署完成后一起正常,各种资源对象均可正常创建、 部署应用后发现无法跨节点通信,且pod的ip都是172.17.0.0段的 二、排查过程层 查看节点路由,发现docker0网卡居然是172.17.0.0段(what?) 查找如下资料:基于docker的CNM部署flanel ...
分类:
其他好文 时间:
2019-12-21 00:23:17
阅读次数:
145