1.maven依赖 <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.co ...
分类:
数据库 时间:
2020-09-24 22:12:38
阅读次数:
88
class program { static void main(string[] args) { calculator c = new calculator(); int r = 0; try { r = c.add("abc","100"); } catch(overflowException ...
在我们使用io流的时候,是必须在语句的结尾进行关闭的,那么JDK7优化的try-with-resource语句就确保了每一个资源在语句结束的时候关闭。资源(resource)是指在程序完成后,必须关闭的对象。 try(创建流的对象,如果多个,使用";"隔开){ }catch(IOException ...
分类:
其他好文 时间:
2020-09-24 20:51:34
阅读次数:
37
一、消息的事务性 1、生产者 01、生产者不开启事务 不开启事务的生产代码: public class JmsQueueProducer { public static final String BROKER_URL = "tcp://192.168.229.129:61616"; public s ...
分类:
其他好文 时间:
2020-09-24 00:03:28
阅读次数:
36
public static void TryMultiTime(Action act, int tryTimes=3, int interval = 2000) { var i = 0; while (true) { try { i++; act(); break; } catch (Excepti ...
分类:
其他好文 时间:
2020-09-18 17:20:35
阅读次数:
48
2020年9月15日,VMware Fusion 团队宣布正式发布 VMware Fusion 12 Pro 和 VMware Fusion 12 Player。
分类:
系统相关 时间:
2020-09-18 02:49:07
阅读次数:
104
1. 走向深度:VGGNet 随着AlexNet在2012年ImageNet大赛上大放异彩后, 卷积网络进入了飞速的发展阶段, 而2014年的ImageNet亚军结构VGGNet(Visual Geometry Group Network) 则将卷积网络进行了改良, 探索了网络深度与性能的关系, 用 ...
分类:
Web程序 时间:
2020-09-18 02:21:26
阅读次数:
54
一、springmvc的xml配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/200 ...
分类:
编程语言 时间:
2020-09-18 01:58:54
阅读次数:
45
原文链接:http://www.zhaojun.im/springboot-exception/ 前言 在 Web 开发中, 我们经常会需要处理各种异常, 这是一件棘手的事情, 对于很多人来说, 可能对异常处理有以下几个问题: 什么时候需要捕获(try-catch)异常, 什么时候需要抛出(thro ...
分类:
编程语言 时间:
2020-09-18 01:54:42
阅读次数:
40
执行 GET 请求 // 为给定 ID 的 user 创建请求 axios.get('/user?ID=12345') .then(function (response) { console.log(response); }) .catch(function (error) { console.lo ...
分类:
移动开发 时间:
2020-09-18 01:37:15
阅读次数:
46