本文讲解了如何处理捕获全局异常以及怎么自定义异常,顺便说明了统一结果的返回格式,并特殊处理的404,not found的异常,将其作为统一结果返回。如果你觉得本文有用,点个赞吧! ...
分类:
编程语言 时间:
2020-04-26 21:13:29
阅读次数:
97
软解析(soft prase)和硬解析(hard prase)以及 Soft Soft Parse 每个sql会产生两个share cursor 父游标(parent cursor)和子游标(child cursor) ,缓存在库缓存区的对象都是以一种叫库缓存对象句柄(library cache o ...
分类:
数据库 时间:
2020-04-26 17:15:09
阅读次数:
80
This passage is wrote to introduce the header file <iomanip>. The basic usage of the library funcions from this header file is in the form of "."or by ...
分类:
其他好文 时间:
2020-04-25 17:34:58
阅读次数:
65
cmake_minimum_required(VERSION 3.5) project(hello_library) ############################################################ # Create a library ########### ...
分类:
其他好文 时间:
2020-04-25 16:50:46
阅读次数:
78
cmake_minimum_required(VERSION 3.5) project(cmake_examples_install) ############################################################ # Create a library ## ...
分类:
其他好文 时间:
2020-04-25 16:48:02
阅读次数:
73
经过验证,浏览器上同一个请求无法同时访问两个controller。 如果同时请求两个controller会报异常: java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'shiroController2' bean ...
分类:
其他好文 时间:
2020-04-25 00:47:40
阅读次数:
76
0424数组操作 重点 ~~~ 数组作为参数进行传递格式: 方法调用时仅仅在方法中调用数组名即可 方法定义时需完整定义:int[] arr class Demo5 { public static void main(String[] args) { int[] arr = {1, 2, 3, 4, ...
分类:
编程语言 时间:
2020-04-24 23:26:57
阅读次数:
104
第一步:先建立系统变量 第二步:在系统变量那里找到path,然后添加 %PYTHON_HOME% %PYTHON_HOME%\Scripts %PYTHON_HOME%\Library\bin 一直点击确定,环境变量就配置好了 ...
!!!一个惊天巨坑!!! 因为要进行复杂的动态sql查询,从注解方式转到xml方式,看了https://mybatis.org/mybatis-3/zh/写好代码,能跑起来,一操作数据库就报错:Invalid bound statement (not found),即在mybatis中mapper接 ...
分类:
其他好文 时间:
2020-04-23 18:58:03
阅读次数:
67
更改配置文件nginx.conf fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; 替换成下面 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 然 ...
分类:
Web程序 时间:
2020-04-23 16:20:50
阅读次数:
83