- hbase client 2.0.0
- spring boot
- V1.0
1.支持操作增删改查
- 添加hbase-starter依赖
<dependency>
<groupId>com.xiaoyao</groupId>
<artifactId>xiaoyao-hbase-starter</artifactId>
<version>Latest Version</version>
</dependency>
#application.yml
xiaoyao:
hbase:
enabled: true
server:
server-urls: localhost
port: 2181
thread-max: 128
- 使用
@Autowired
private HbaseTemplate hbaseTemplate;
public User getUserByKey(String key){
User user = hbaseTemplate.get(key, User.class);
}