import java.sql.*; /** JDBC工具类 */ public class JdbcUtil { /** * 获取数据库连接对象并返回 * * @return Connection对象 * @throws Exception */ public static Connection ...
分类:
数据库 时间:
2020-07-03 21:23:12
阅读次数:
76
mq连接 public class MessageUtils { //获取mq的连接 public static Connection getConnection() throws IOException, TimeoutException { //定义一个连接工厂 ConnectionFactor ...
3.9.4 False Cause Fallacy It occurs when the “link between premises and conclusion depends on some imagined causal connection that probably does not e ...
分类:
其他好文 时间:
2020-07-01 14:12:14
阅读次数:
68
RabbitMQ是基于AMQP协议的,通过使用通用协议就可以做到在不同语言之间传递。 AMQP协议 核心概念 server:又称broker,接受客户端连接,实现AMQP实体服务。 connection:连接和具体broker网络连接。 channel:网络信道,几乎所有操作都在channel中进行 ...
分类:
其他好文 时间:
2020-06-30 22:56:43
阅读次数:
92
1.介绍 JConsole图形用户界面是符合Java管理扩展(JMX)规范的监视工具,可以监测有关在Java平台上运行的应用程序的性能和资源消耗的信息。 启动JConsole jconsole [ options ] [ connection ... ] connection = pid | hos ...
分类:
系统相关 时间:
2020-06-30 22:29:15
阅读次数:
101
MyBatis 是一款优秀的半自动的轻量级的持久层框架。 创建Maven项目 pom.xml 导入相关依赖 org.mybatis → mybatis mysql-connection-java → mysql org.projectlombok → lombok log4j → log4j <?x ...
分类:
其他好文 时间:
2020-06-30 19:01:34
阅读次数:
53
Can’t login: Connect to api.github.com:443 [api.github.com/13.250.168.23] failed: Connection refused: connect
// Body represents the response body. // // The response body is streamed on demand as the Body field // is read. If the network connection fails or t ...
分类:
其他好文 时间:
2020-06-30 11:07:15
阅读次数:
64
修改最大连接数 重启 查询已连接数 1、查看当前用户连接数:select connections(); 2、修改用户new_user的最大并发连接数为50:alter user new_user with connection limit 50; 3、修改用户new_user的最大连接时间为2小时: ...
分类:
其他好文 时间:
2020-06-30 10:25:55
阅读次数:
142
问题: 使用Flask-SQLALchemy连接mysql数据库,过几个小时第一次使用会出现MySQL Connection not available的情况,第二次使用又恢复正常了。 解决方案: 用命令查看数据库的过期时间 show global variables like 'wait_time ...
分类:
数据库 时间:
2020-06-29 17:19:09
阅读次数:
176