- 博客(8)
- 资源 (16)
- 收藏
- 关注
原创 在mac上恢复windows上备份的SQLServer数据库
数据库备份文件为~/data/sqlserver/secureback.bakMac上docker运行sqlserver:docker run -it -e SA_PASSWORD=Active#123 -e SQLSERVER_DATABASE=test -e SQLSERVER_USER=test -e SQLSERVER_PASSWORD=test -p 1433:1433 --nam...
2018-09-29 16:27:08 1535
原创 Inside JVM笔记
JVM包括三部分: 1. 类加载器系统。加载,连接(校验,准备,解释),初始化。类加载器:Bootstrap(/jre/lib) -> Extension(/jre/lib/ext) -> System (classpath) 2. 存储区域。五部分:方法区,Heap,堆栈,PC寄存器,Native方法堆栈。 3. 执行引擎。解释器,JIT,垃圾回收器内存泄漏原因: ...
2018-09-13 16:42:15 168
原创 反模式 Phantom logging
Phantom logging这种反模式几乎在所有项目中都能找到。在这种反模式下,我们会生成log 消息,但是不会不会将他写入日志文件。看下面的例子:logger.debug ("one log message" + param_1 + "text" + param_2);尽管我们把log的级别设置为INFO,但是上面的例子中,还是会组装log消息。如果debug和trace级别的log数...
2018-09-13 14:21:45 164
原创 RabbitMQ最简单例子
主要步骤:创建Exchange创建Queue使用RoutingKey绑定Exchange到Queue向Exchange发送消息,需要设置消息的RoutingKeyExchange收到消息后根据RoutingKey绑定转发消息到Queue从Queue读取消息Maven依赖:<dependency> <groupId>org.springfra...
2018-09-12 13:47:02 299
原创 JMS与AMQP比较
1.平台JMS只针对Java编程语言。AMQP多技术平台。2. 消息模型。JMS支持两种消息模型,点对点,发布订阅模型。 AMQP支持多种交换类型,direct,topic,fanout,headers。消息路由算法依赖于exchange的类型。3. 消息数据类型JMS支持 StreamMessage,MapMessage,TextMessage,ObjectMessage和...
2018-09-11 16:33:16 673
原创 优化JDBC
一,FetchSize。默认fetchsize是10行,如果查询结果包括100行,应用与数据库之间会有10次网络交互。但是如果FetchSize设置很大,可能会导致OutOfMemoryError PreparedStatement.setFetchSize(100); JdbcTemplate.setFetchSize(100);二,Statement VS PreparedStatem...
2018-09-10 11:16:40 1352
原创 事务隔离级别
Read Uncommitted, 事务B会读取到事务A未提交的脏数据 Read Committed, 不会读取到未提交的脏数据。事务A两次读取可能会不同, Repeatable Read,可以保证单条数据每次读取都相同。但是事务A两次读取一定范围内的数据,由于事务B插入了新的数据,导致该范围内数据可能不同。 Serializable,在所有级别都加锁,包括读,写,范围。...
2018-09-07 11:38:58 114
原创 SpringMVC 5 与 Jetty 9 的配置
pom.xml<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org...
2018-09-05 16:37:34 1079
The Full Stack Developer Your Essential Guide to the Everyday Skills...
2019-01-21
Kafka Streams in Action (Manning, 2017, MEAP Edition)
2017-09-30
Java NIO 中英文版+Pro Java 7 NIO.2
2017-09-22
Angular权威教程中文高清完整版(2017.04)
2017-09-19
Mastering Selenium WebDriver [2015]
2017-09-15
2017年系统分析师真题
2017-09-05
Spring_ Microservices in Action 英文版
2017-09-04
Pragmatic 101 Design Ingredients to Solve Big Tech Problems 2013 pdf
2013-10-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人