Springboot常使用配置属性

#端口号
server.port=8080

#分页行数
pager.size=10

#log
logging.config=classpath:logback.xml

#thymelea
spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html
spring.thymeleaf.mode=HTML5
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.cache=false

# mysql
spring.datasource.url=jdbc:mysql://192.168.1.141:3306/bigdata?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=bigdata
spring.datasource.password=Goodwe!123

#redis
spring.redis.host=192.168.1.183
spring.redis.port=6385
spring.redis.password=goodwe

#kafka
#连接地址
spring.kafka.bootstrap-servers=192.168.1.43:9092
#消费者组
spring.kafka.consumer.group-id=group_gops_data3
# earliest:当各分区下有已提交的offset时,从提交的offset开始消费;无提交的offset时,从头开始消费
# latest:当各分区下有已提交的offset时,从提交的offset开始消费;无提交的offset时,消费新产生的该分区下的数据
# none:topic各分区都存在已提交的offset时,从offset后开始消费;只要有一个分区不存在已提交的offset,则抛出异常
spring.kafka.consumer.auto-offset-reset=earliest
#如果为true,消费者的偏移量将在后台定期提交
spring.kafka.consumer.enable-auto-commit=true
#设置自动提交周期
spring.kafka.consumer.auto-commit-interval=5000
#此设置限制每次调用poll返回的消息数
spring.kafka.consumer.max-poll-records=10
#每个监听器的消费者个数
spring.kafka.listener.concurrency= 5
#数据标签
spring.kafka.topic= datatest
# 最大取多少块缓存到消费者(默认10)
spring.kafka.queued.max.message.chunks=50

#hbase
hbase.zookeeper.quorum=slave1,slave2,slave3
hbase.zookeeper.port=2181

# 静态资源
spring.mvc.static-path-pattern=/static/**

# 配置slq打印日志
mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl

转载于:https://my.oschina.net/u/4100033/blog/3041327

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值