2021年6月28日
摘要: 阅读全文
posted @ 2021-06-28 16:16 upupup-999 阅读(33) 评论(0) 推荐(0)
摘要: 设计模式常用的七大原则有: 1) 单一职责原则 2) 接口隔离原则 3) 依赖倒转(倒置)原则 4) 里氏替换原则 5) 开闭原则 6) 迪米特法则 7) 合成复用原则 1.单一职责原则 对类来说的,即一个类应该只负责一项职责。如类A负责两个不同职责:职责1,职责2。 当职责1需求变更而改变A时,可 阅读全文
posted @ 2021-06-28 09:57 upupup-999 阅读(111) 评论(0) 推荐(0)
  2021年6月27日
摘要: 参考链接 (4条消息) UML类图新手入门级介绍_愤怒的小狐狸 博客专栏-CSDN博客 UML类图 - 简书 (jianshu.com) 阅读全文
posted @ 2021-06-27 20:58 upupup-999 阅读(22) 评论(0) 推荐(0)
摘要: 1.题目如下 2.解题代码 #include<stdio.h> #include<stdlib.h> int finMissMin(int a[],int n) { int i,*b; b=(int *)malloc(sizeof(int)*n); //初始化为0 for(i=0;i<n;i++) 阅读全文
posted @ 2021-06-27 11:21 upupup-999 阅读(200) 评论(0) 推荐(0)
摘要: 1.题目如下 2.解题代码 #include<stdio.h> int majority(int a[],int n){ int i,count=1,c=a[0]; for(i=1;i<n;i++) { if(a[i]==c) count++; else { if(count>0) count--; 阅读全文
posted @ 2021-06-27 10:12 upupup-999 阅读(195) 评论(0) 推荐(0)
  2021年6月26日
摘要: 1、在common模块添加依赖 由于redis缓存是公共应用,所以我们把依赖与配置添加到了common模块下面,在common模块pom.xml下添加以下依赖 <!-- redis --> <dependency> <groupId>org.springframework.boot</groupId 阅读全文
posted @ 2021-06-26 15:47 upupup-999 阅读(97) 评论(0) 推荐(0)
摘要: 今天学习数据结构与算法发现这个算法还是挺常用的,记录一下嘿嘿 C++代码 #include<stdio.h> //解题思想 由AB得到BA 可以将A逆置,B逆置,再将AB同时逆置 //1 2 3 4 5 6 7 8 //循环左移3次 //4 5 6 7 8 1 2 3 void Reverse(in 阅读全文
posted @ 2021-06-26 10:12 upupup-999 阅读(407) 评论(0) 推荐(0)
  2021年6月25日
摘要: 1.导入依赖 <!-- https://mvnrepository.com/artifact/com.alibaba/easyexcel --><dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> 阅读全文
posted @ 2021-06-25 13:39 upupup-999 阅读(118) 评论(0) 推荐(0)
摘要: 1.在配置文件application.properties中设置 logging.level.root=WARN//这种方式只能将日志打印在控制台上 2.安装idea彩色日志插件:grep-console resources 中创建 logback-spring.xml 内容 <?xml versi 阅读全文
posted @ 2021-06-25 09:51 upupup-999 阅读(78) 评论(0) 推荐(0)
  2021年6月24日
摘要: <build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </i 阅读全文
posted @ 2021-06-24 22:23 upupup-999 阅读(44) 评论(0) 推荐(0)