摘要: 自定义注解 @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD,ElementType.TYPE}) public @interface ApiVersion { /** * 版本号 * @return */ double 阅读全文
posted @ 2021-11-20 11:32 往事随雨 阅读(46) 评论(0) 推荐(0)
摘要: 问题 今天刚安装的MySQL数据库,远程无法连接,报错如下 null, message from server: "Host 'xxx.192.223.177' is not allowed to connect to this MySQL server" 解决 mysql -uroot -p 输入 阅读全文
posted @ 2021-11-11 00:00 往事随雨 阅读(108) 评论(0) 推荐(0)
摘要: 问题 远程创建仓库后,第一次push到远程,本地提示 Updates were rejected because the remote contains work that you do 解决 使git允许合并不相关的历史,使用命令 git pull origin master --allow-un 阅读全文
posted @ 2021-11-09 23:48 往事随雨 阅读(35) 评论(0) 推荐(0)
摘要: 解释 Sliding window algorithm is used to perform required operation on specific window size of given large buffer or array. 滑动窗口算法是在给定特定窗口大小的数组或字符串上执行要求 阅读全文
posted @ 2021-11-09 21:16 往事随雨 阅读(90) 评论(0) 推荐(0)
摘要: public class Test { public static void main(String[] args) { int[] array = {1,2,3,4,5,6,7}; int value = 8; System.out.println(binarySearch(array, valu 阅读全文
posted @ 2021-04-24 21:35 往事随雨 阅读(31) 评论(0) 推荐(0)
摘要: 项目 定义 项目是为创造独特的产品、服务或成果而进行的临时性工作 特点 独特性:独特性带来不确定性 即项目创造出的产品与其他产品有明显的差别 临时性:每个项目都有明确的起点和终点,临时性不一定代表项目持续时间短 相关的一系列活动 项目可以驱动组织架构变更 项目可以创造商业价值 例题:下面哪项不是项目 阅读全文
posted @ 2021-02-21 18:23 往事随雨 阅读(224) 评论(0) 推荐(0)
摘要: 代理模式 代理模式为另一个对象提供一个替身或者占位符以控制对这个对象的访问。使用代理模式创建代理对象,让代理对象控制对某对象的访问,被代理的对象可以是远程的对象,创建开销大的对象或者是需要安全控制的对象。 代理模式可以在不修改被代理对象的基础上,通过扩展代理类,进行一些功能的附加与增强。值得注意的是 阅读全文
posted @ 2021-02-04 23:36 往事随雨 阅读(36) 评论(0) 推荐(0)
摘要: 进入idea > Setting 阅读全文
posted @ 2021-01-25 23:29 往事随雨 阅读(234) 评论(0) 推荐(1)
摘要: Thread的join方法 join() :Waits for this thread to die.等待此线程结束 join(long millis): Waits at most milliseconds for this thread to die. A timeout of 0 means 阅读全文
posted @ 2021-01-22 20:18 往事随雨 阅读(125) 评论(0) 推荐(0)
摘要: 线程 线程是操作系统能够运算调度的最小单位,它被包含在进程中,是进程中的实际运做单位。 https://baike.baidu.com/item/%E7%BA%BF%E7%A8%8B/103101?fr=aladdin Java创建线程的方式 public class DemoThread exte 阅读全文
posted @ 2021-01-21 22:41 往事随雨 阅读(52) 评论(0) 推荐(0)