03 2017 档案

摘要:from https://yq.aliyun.com/articles/8826 被问到一个问题:MySQL中varchar最大长度是多少?这不是一个固定的数字。本文简要说明一下限制规则。 1、限制规则 字段的限制在字段定义的时候有以下规则: a) 存储限制 varchar 字段是将实际内容单独存储 阅读全文
posted @ 2017-03-31 09:34 princessd8251 阅读(150) 评论(0) 推荐(0) 编辑
摘要:https://www.confluent.io/blog/tutorial-getting-started-with-the-new-apache-kafka-0-9-consumer-client/ When Kafka was originally created, it shipped wi 阅读全文
posted @ 2017-03-30 11:03 princessd8251 阅读(170) 评论(0) 推荐(0) 编辑
摘要:Spring Kafka Producer/Consumer sample My objective here is to show how Spring Kafka provides an abstraction to raw Kafka Producer and Consumer API's t 阅读全文
posted @ 2017-03-25 21:11 princessd8251 阅读(342) 评论(0) 推荐(0) 编辑
摘要:from http://www.jianshu.com/p/a313ffd19a2e 随着spring boot 1.5版本的发布,在spring项目中与kafka集成更为简便。 具体spring-kafka的版本由spring boot的当前版本决定。 最简化的配置仅需指定kafka主机和消息者组 阅读全文
posted @ 2017-03-22 00:13 princessd8251 阅读(2207) 评论(0) 推荐(0) 编辑
摘要:from http://blog.didispace.com/springbootmultidatasource/ 之前在介绍使用JdbcTemplate和Spring-data-jpa时,都使用了单数据源。在单数据源的情况下,Spring Boot的配置非常简单,只需要在application.p 阅读全文
posted @ 2017-03-17 02:19 princessd8251 阅读(138) 评论(0) 推荐(0) 编辑
摘要:下面介绍一下最常用的一些注解 @JsonIgnoreProperties 此注解是类注解,作用是json序列化时将Java bean中的一些属性忽略掉,序列化和反序列化都受影响。 @JsonIgnore 此注解用于属性或者方法上(最好是属性上),作用和上面的@JsonIgnoreProperties 阅读全文
posted @ 2017-03-15 21:50 princessd8251 阅读(182) 评论(0) 推荐(0) 编辑
摘要:from http://blog.didispace.com/springbootswagger2/?utm_source=tuicool&utm_medium=referral 由于Spring Boot能够快速开发、便捷部署等特性,相信有很大一部分Spring Boot的用户会用来构建RESTf 阅读全文
posted @ 2017-03-14 14:42 princessd8251 阅读(114) 评论(0) 推荐(0) 编辑
摘要:from http://wiselyman.iteye.com/blog/2184884 1 添加redis支持 在pom.xml中添加 Xml代码 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring 阅读全文
posted @ 2017-03-14 14:40 princessd8251 阅读(174) 评论(0) 推荐(0) 编辑
摘要:from http://www.cnblogs.com/java-zhao/p/5413845.html 第八章 springboot + mybatis + 多数据源 在实际开发中,我们一个项目可能会用到多个数据库,通常一个数据库对应一个数据源。 代码结构: 简要原理: 1)DatabaseTyp 阅读全文
posted @ 2017-03-14 14:38 princessd8251 阅读(154) 评论(0) 推荐(0) 编辑
摘要:上一篇介绍了在Spring Boot中如何引入缓存、缓存注解的使用、以及EhCache的整合。 虽然EhCache已经能够适用很多应用场景,但是由于EhCache是进程内的缓存框架,在集群模式下时,各应用服务器之间的缓存都是独立的,因此在不同服务器的进程间会存在缓存不一致的情况。即使EhCache提 阅读全文
posted @ 2017-03-14 14:31 princessd8251 阅读(233) 评论(0) 推荐(0) 编辑
摘要:from http://blog.didispace.com/springbootmybatis/ 最近项目原因可能会继续开始使用MyBatis,已经习惯于spring-data的风格,再回头看xml的映射配置总觉得不是特别舒服,接口定义与映射离散在不同文件中,使得阅读起来并不是特别方便。 Spri 阅读全文
posted @ 2017-03-14 14:30 princessd8251 阅读(138) 评论(0) 推荐(0) 编辑
摘要:from http://caseyscarborough.com/blog/2014/12/18/caching-data-in-spring-using-redis/ Caching is a way for applications to store data so that future re 阅读全文
posted @ 2017-03-14 13:09 princessd8251 阅读(180) 评论(0) 推荐(0) 编辑
摘要:from https://dzone.com/articles/enabling-caching-in-mongodb-database-with-redis-us Today, performance is one of the most important metrics we need to 阅读全文
posted @ 2017-03-14 13:07 princessd8251 阅读(2741) 评论(0) 推荐(0) 编辑
摘要:Cassandra works optimally when the data you need to access is already in memory. Disks are comparatively slow, so when data needs to be read from disk 阅读全文
posted @ 2017-03-02 19:18 princessd8251 阅读(157) 评论(0) 推荐(0) 编辑
摘要:from http://saugereau.github.io/blog/2014/12/cassandra-cache/ Reading path Before detailing the cache working, we have to dig in reading path : First, 阅读全文
posted @ 2017-03-02 16:19 princessd8251 阅读(282) 评论(0) 推荐(0) 编辑
摘要:DataStax Enterprise‘s heavy usage of Cassandra’s innate datacenter concepts are important as they allow multiple workloads to be run across multiple d 阅读全文
posted @ 2017-03-02 00:11 princessd8251 阅读(173) 评论(0) 推荐(0) 编辑
摘要:Increasing the replication factor increases the total number of copies of keyspace data stored in a Cassandra cluster. For more information about repl 阅读全文
posted @ 2017-03-01 23:52 princessd8251 阅读(217) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示