本文讲解了如何处理捕获全局异常以及怎么自定义异常,顺便说明了统一结果的返回格式,并特殊处理的404,not found的异常,将其作为统一结果返回。如果你觉得本文有用,点个赞吧! ...
分类:
编程语言 时间:
2020-04-26 21:13:29
阅读次数:
97
经过验证,浏览器上同一个请求无法同时访问两个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
!!!一个惊天巨坑!!! 因为要进行复杂的动态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
https://blog.csdn.net/qq_34474324/article/details/98874675 ...
分类:
移动开发 时间:
2020-04-23 00:55:39
阅读次数:
140
robotframework执行UI自动化时报错,查看日志显示Parent suite setup failed: Variable '${browser}' not found. Did you mean: ${blowser} 起初一直在相关库是否导进来等方面定位问题,最后发现是引用变量时写的是 ...
分类:
其他好文 时间:
2020-04-22 16:50:41
阅读次数:
217
centos7 编辑安装php遇到的问题: ./configure 配置遇到的No package 'libxml-2.0' found缺失libxml2.0 库,解决方法: yum -y install libxml2 yum -y install libxml2-devel ./configur ...
分类:
Web程序 时间:
2020-04-22 09:36:31
阅读次数:
187
用cxf+spring发布webservice,使用apache-cxf客户端方式调用接口访问服务器时,报javax.xml.bind.JAXBException: Provider com.sun.xml.bind.v2.ContextFactory not found 错误,异常堆栈信息如下: ...
分类:
编程语言 时间:
2020-04-21 23:48:17
阅读次数:
79