- 博客(3)
- 收藏
- 关注
原创 springboot从数据库中取出null值
当数据库里的字段是下划线式命名,springboot的实体类是驼峰类命名,那么要开启驼峰命名转换,不然取到的值为null,#开启驼峰命名转换mybatis: configuration: map-underscore-to-camel-case: true
2022-05-12 20:43:57 337
原创 快速排序(C++实现),通俗易懂的讲解
#include<iostream>using namespace std;const int N = 100;int q[N];int n;void quick_sort(int q[], int l, int r){ //递归的终止情况,一定要注意边界问题 if (l >= r) return; //第一步:分成子问题 int i = l - 1, j = r + 1, x = q[l + r >> 1]; /*.
2021-10-24 20:41:24 235
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人