今天是小学期的最后一天,我终于完成了小学期的第个程序题,并且借用今天的程序代码使我懂得了更多关于链表的知识,今日的问题是关于约瑟夫问题的求解,我的代码如下:#include<iostream>using namespace std;typedef struct node{ int data; str ...
分类:
其他好文 时间:
2020-07-09 22:36:41
阅读次数:
77
初次渲染就会触发的生命周期 beforeCreate() , created() beforeMount() , mounted() 组件的调用顺序都是先父后子,渲染完成的顺序是先子后父。 组件的销毁操作是先父后子,销毁完成的顺序是先子后父。 加载渲染过程 子组件在父组件的beforeMount和M ...
分类:
其他好文 时间:
2020-07-09 22:36:07
阅读次数:
83
SqlSessionFactory何时创建 容器启动时创建 能否直接使用DefaultSqlSession 不能,因为该类不是线程安全的,直接用会有问题,Spring环境中使用了SqlSessionTemplate类代替 为什么SqlSessionTemplate是线程安全的:SqlSessionT ...
分类:
编程语言 时间:
2020-07-09 22:35:55
阅读次数:
69
链表总结 链表基础 如何实现一个单链表 #include "bits/stdc++.h" using namespace std; struct MyListNode { int data; MyListNode *next; MyListNode(int left = -1, MyListNode ...
分类:
其他好文 时间:
2020-07-09 22:31:25
阅读次数:
55
定制比较规则: 1.内部比较器|自然排序 要当前比较的类型实现一个借口Comparable接口,重写compareTo方法,方法的内部制定比较规则 硬编码习惯,不够灵活,每次修改源代码 @Override public int compareTo(Person o) { return o.age-t ...
分类:
其他好文 时间:
2020-07-09 22:17:11
阅读次数:
74
经常会看到通过@Bean注解来产生一个Java bean放进Spring的IOC容器,可是有的方法里带有参数,那么这些参数从何而来? 答案是,他们会自动从容器中查找该类型的bean,如果没有将会报错。 我写着这样一个简单的测试类 @Configuration public class SampleB ...
分类:
编程语言 时间:
2020-07-09 22:16:19
阅读次数:
100
今天是小学期的最后一天题目是约瑟夫问题的求解,代码如下:#include<iostream>using namespace std;typedef struct node{ int data; struct node* next;};node* create(){ int n; node* head ...
分类:
其他好文 时间:
2020-07-09 22:15:59
阅读次数:
86
一、modify easy-mock-->/api/gathering/search/{page}/{size} { "flag": true, "code": 20000, "message": "@string", "data": { "total": "@integer(60, 100)", ...
分类:
其他好文 时间:
2020-07-09 22:05:02
阅读次数:
61
插件编写要求(分页插件PageHelper) 自定义插件需要做到三点 1)实现Interceptor接口 public class PageInterceptor implements Interceptor{} 2)实现对应的方法。最关键的是intercept()方法里面是拦截的逻辑,需要增强的代 ...
分类:
编程语言 时间:
2020-07-09 19:41:08
阅读次数:
73
SELECT p.PatientID ,p.SBP, p.SBP2,p.SBP-p.SBP2 FROM ppg_data AS p where p.SBP2 is not null and p.SBP is not null 更改为 SELECT p.PatientID ,p.SBP, p.SBP2 ...
分类:
数据库 时间:
2020-07-09 19:37:08
阅读次数:
94