Skip to content

由于spring官方封装的spring-hbase-starter不太好用,所以自己封装了hbase-starter,持续更新优化,欢迎大家使用

Notifications You must be signed in to change notification settings

pengbo518/xiaoyao-hbase-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Hbase-Starter-逍遥出品

  • hbase client 2.0.0
  • spring boot

Update

  • V1.0
    1.支持操作增删改查

Getting started

  • 添加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);
    }

About

由于spring官方封装的spring-hbase-starter不太好用,所以自己封装了hbase-starter,持续更新优化,欢迎大家使用

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages