03 2017 档案
摘要:from https://yq.aliyun.com/articles/8826 被问到一个问题:MySQL中varchar最大长度是多少?这不是一个固定的数字。本文简要说明一下限制规则。 1、限制规则 字段的限制在字段定义的时候有以下规则: a) 存储限制 varchar 字段是将实际内容单独存储
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:from http://www.jianshu.com/p/a313ffd19a2e 随着spring boot 1.5版本的发布,在spring项目中与kafka集成更为简便。 具体spring-kafka的版本由spring boot的当前版本决定。 最简化的配置仅需指定kafka主机和消息者组
阅读全文
摘要:from http://blog.didispace.com/springbootmultidatasource/ 之前在介绍使用JdbcTemplate和Spring-data-jpa时,都使用了单数据源。在单数据源的情况下,Spring Boot的配置非常简单,只需要在application.p
阅读全文
摘要:下面介绍一下最常用的一些注解 @JsonIgnoreProperties 此注解是类注解,作用是json序列化时将Java bean中的一些属性忽略掉,序列化和反序列化都受影响。 @JsonIgnore 此注解用于属性或者方法上(最好是属性上),作用和上面的@JsonIgnoreProperties
阅读全文
摘要:from http://blog.didispace.com/springbootswagger2/?utm_source=tuicool&utm_medium=referral 由于Spring Boot能够快速开发、便捷部署等特性,相信有很大一部分Spring Boot的用户会用来构建RESTf
阅读全文
摘要:from http://wiselyman.iteye.com/blog/2184884 1 添加redis支持 在pom.xml中添加 Xml代码 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring
阅读全文
摘要:from http://www.cnblogs.com/java-zhao/p/5413845.html 第八章 springboot + mybatis + 多数据源 在实际开发中,我们一个项目可能会用到多个数据库,通常一个数据库对应一个数据源。 代码结构: 简要原理: 1)DatabaseTyp
阅读全文
摘要:上一篇介绍了在Spring Boot中如何引入缓存、缓存注解的使用、以及EhCache的整合。 虽然EhCache已经能够适用很多应用场景,但是由于EhCache是进程内的缓存框架,在集群模式下时,各应用服务器之间的缓存都是独立的,因此在不同服务器的进程间会存在缓存不一致的情况。即使EhCache提
阅读全文
摘要:from http://blog.didispace.com/springbootmybatis/ 最近项目原因可能会继续开始使用MyBatis,已经习惯于spring-data的风格,再回头看xml的映射配置总觉得不是特别舒服,接口定义与映射离散在不同文件中,使得阅读起来并不是特别方便。 Spri
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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,
阅读全文
摘要:DataStax Enterprise‘s heavy usage of Cassandra’s innate datacenter concepts are important as they allow multiple workloads to be run across multiple d
阅读全文
摘要:Increasing the replication factor increases the total number of copies of keyspace data stored in a Cassandra cluster. For more information about repl
阅读全文