摘要:
排序 插入排序 直接插入排序 //直接插入排序 void InsertSort(int A[], int n) { int i, j, temp; for (i = 1; i < n; i++) { //将各元素插入已经排好序的序列中 if (A[i] < A[i - 1]) { //若A[i]关键 阅读全文
摘要:
组件注册: 1.定义配置类(相当于配置文件) @Configuration//告诉Spring这是配置类(配置文件) public class MainConfig { // 将组件注册到容器中 @Bean()//组件类型就是方法返回值类型,组件id默认就是方法名 public Person per 阅读全文