- 博客(31)
- 资源 (2)
- 收藏
- 关注
原创 spring valid参数校验结果的处理(BindingResult)
ControllerAdvice 中的assignableTypes属性用来指定处理哪些controller中的异常,如果不屑,默认处理所有controller一定类型的异常。被ControllerAdvice 修饰的类可以处理多种异常,只需要你在方法上用exception指定要处理的异常即可。此时当前controller中的所有数据校验异常都会被此方法处理。
2023-03-11 09:43:13
727
原创 解决华为SecoClient在win10,win11环境下显示返回状态码超时问题
进入 C:\Windows\System32\drivers 找到 SVNDrv.sys 备份后删除。链接:https://pan.baidu.com/s/1MGx_CBMu6pUgixM5SxYIZg。–来自百度网盘超级会员V1的分享。首先禁用SVN Adapter。把以下文件解压复制进去。
2023-03-08 11:18:15
1137
原创 Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nes
造成这种错误的原因很多,比如数据库连接信息错误但是我遇到的这种错误好像是db.properties文本格式不够严谨报错前的db.properties做如下修改后程序正常运行下面这个哥们的错误情况和我一样https://www.cnblogs.com/duniang/p/9087795.html...
2019-12-22 17:14:48
3391
原创 哈夫曼编码
#include <stdio.h>#include <malloc.h>#include <string.h>#include <stdlib.h>typedef char ElemType;typedef struct HTNODE{ ElemType data;//数据域 struct HTNODE* lchild...
2019-06-14 10:45:31
186
原创 线性表的链式存储
#include <stdio.h>#include <malloc.h>#include <stdbool.h>typedef int ElemType;typedef struct NODE{ ElemType data; struct NODE* next;}Node,*NodePtr;//链表节点typedef struct...
2018-11-11 17:26:03
221
原创 十字链表法存储稀疏矩阵
#include <stdio.h>#include <malloc.h>typedef int ElemType;typedef struct NODE{ int i;//非零元行号 int j;//非零元列号 ElemType e;//非零元 struct NODE* rptr;//行指针 struct NODE* cpt...
2018-11-11 11:28:00
961
原创 线性表的顺序存储
#include <stdio.h>#include <stdbool.h>#include <malloc.h>#define INIT_SIZE 50#define INCRE_SIZE 20typedef int ElemType;typedef struct SQLIST{ ElemType* data; //存储空间基址 ...
2018-11-05 16:06:10
160
原创 队列的链式存储
#include <stdio.h>#include <stdlib.h>#include <stdbool.h>typedef int ElemType;typedef struct QNODE{ ElemType data; struct QNODE* next;}QueueNode,*QueueNodePtr;typedef ...
2018-10-24 16:34:07
177
原创 栈的顺序存储
#ifndef STRACK#define STRACK#include <stdio.h>#include <stdbool.h>#include <stdlib.h>typedef int ElemType;#define INCREASEMENT_SIZE 10typedef struct STRACKNODE{ ElemTy...
2018-10-24 16:33:39
262
原创 栈的顺序存储 括号匹配
#include "strack.h"int main(){ char e; char a; StrackPtr s = InitStrack();//初始化栈 int count = 0; char string[50] = {0}; gets(string); int n = strlen(string); //pr...
2018-10-24 16:33:27
201
原创 栈处理四则运算
#ifndef STRACK#define STRACK#include <stdio.h>#include <stdbool.h>#include <stdlib.h>typedef int ElemType;#define INCREASEMENT_SIZE 10typedef struct STRACKNODE{ ElemType*...
2018-10-24 16:33:17
418
原创 栈实现行文本编辑
int main(){ StrackPtr s = InitStrack(); char c = getchar(); while (c != EOF && c != '\n') { edit(&c, s); c = getchar(); } char* string = (char*)mal...
2018-10-24 16:33:02
264
原创 栈的链式存储结构
#ifndef STRACK_LIST#define STRACK_LIST#include <stdio.h>#include <stdbool.h>#include <malloc.h>typedef int ElemType;typedef struct NODE{ ElemType data; struct NODE* n...
2018-10-24 16:32:14
123
原创 队列的顺序存储
#ifndef QUEUE_H#define QUEUE_H#include <stdio.h>#include <stdbool.h>#include <malloc.h>#define MAX_SIZE 50typedef int ElemType;typedef struct QUEUE{ int font;//队头 in...
2018-10-24 16:31:53
155
原创 队列输出杨辉三角
#include "queue.h"int main(){ int n = 8; QueuePtr Q = InitQueue(); //初始化 int s = 0, t; EnQueue(Q, 0);//入队 EnQueue(Q, 1); printf(" 1"); putchar('\n'); fo...
2018-10-24 16:31:36
512
原创 二叉树的遍历
#include <stdio.h>#include <stdlib.h>typedef struct BINARYNODE{ char ch; struct BINARYNODE* lchild; struct BINARYNODE* rchild;}BinaryNode;void CreateBinaryTree();void Rec...
2018-09-20 21:41:14
96
转载 串的堆存储结构
#include <stdio.h>#include <stdlib.h>#include <string.h>#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define OVERFLOW -2typedef int Status;#define MAXSTRLEN 40 //...
2018-09-20 16:35:18
826
转载 串的定长顺序存储结构
#include <stdio.h>#include <stdlib.h>#include <string.h>#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define OVERFLOW -2typedef int Status;#define MAXSTRLEN 40 //...
2018-09-20 16:19:02
546
转载 队列的顺序存储结构
#include<iostream>using namespace std;#define MAXSIZE 20typedef int ElemType;typedef struct{ ElemType data[MAXSIZE]; int front; /* 头指针 */ int rear; /* 尾指针,若队列不空,指向队列尾元素的下一个位置...
2018-09-20 10:59:33
201
转载 内核链表
#ifndef LINKLIST#define LINKLIST#include <stdio.h>#include <stdlib.h>typedef struct LINKNODE{ struct LINKNODE* next;}LinkNode;typedef struct LINKLIST{ LinkNode head;...
2018-09-18 20:47:11
108
转载 双链表
#ifndef BOTHWAYLIST#define BOTHWAYLIST#include <stdio.h>#include <stdlib.h>typedef struct NODE{ struct NODE* last; //指向前一个节点 void* data; struct NODE* next;//指向后一个节点}No...
2018-09-18 20:20:48
78
转载 线性表的顺序存储
#ifndef _DYNAMIC_ARRAY_H#define _DYNAMIC_ARRAY_H#include <stdlib.h>typedef struct DynamicArray{ int* pAddr; //元素 int size; //长度 int capacity; //容量}Dynamic_Array;Dynamic_Arr...
2018-09-18 19:33:49
143
原创 C++链表实现多项式相加
#ifndef POLYNOMOAL#define POLYNOMOAL#include <stdio.h>#include <stdlib.h>typedef struct NODE{ int num; int power; struct NODE* next;}Node;typedef struct LIST{ Node...
2018-08-13 20:20:39
3288
原创 java GUI 简易版坦克大战
package tankfire1;import java.awt.*;import java.awt.event.KeyEvent;import java.awt.event.KeyListener;import java.util.Vector;import javax.swing.*;public class Paint_Tank_Class extends JPanel imp...
2018-07-20 21:59:22
1001
原创 java GUI设计简单的计算器
package 计算器;import java.awt.*;import javax.swing.*;import java.awt.event.*;import java.util.Scanner;public class Application extends JFrame { Calculator panel1; JButton[]...
2018-07-13 14:59:38
1055
原创 java ArrayList集合类的基本使用
package 集合类;import java.util.ArrayList;//ArrayList所在的包public class Application { Student stu1 = new Student(1,"小明"); Student stu2 = new Student(2,"小红"); Student stu3 = new Student(3,"小军"); Student stu...
2018-07-13 14:41:53
523
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人