
String
被衣
这个作者很懒,什么都没留下…
展开
-
Kafka配置
基本配置: spring.kafka.consumer.auto-offset-reset=earliest spring.kafka.consumer.enable-auto-commit=false spring.kafka.consumer.properties.fetch.max.wait.ms=60000 spring.kafka.consumer.properties.request.timeout.ms=70000 spring.kafka.consumer.properties.f...原创 2021-05-25 18:01:47 · 509 阅读 · 0 评论 -
SpringBoot服务启动执行方法
实现ApplicationListener 由应用程序事件侦听器实现的接口。基于Observer设计模式的标准{@code java.util.EventListener}接口。 /* * Copyright 2002-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce原创 2021-05-10 13:05:18 · 422 阅读 · 0 评论 -
Java String实战笔记
目录 String format StringUtils里的isEmpty和isBlank String format 用于字符拼接,避免多个+号影响代码可读性 import java.text.MessageFormat; String result = MessageFormat.format("用户风险分数旧值:{0},新值:{1},个数:{2}", oldAliyunScore, score, total); StringUtils里的isEmpty和isB.原创 2021-05-06 14:29:44 · 147 阅读 · 0 评论