mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-10 04:49:55 +08:00
云快充1.5.0 初始化
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* 抖音关注:程序员三丙
|
||||
* 知识星球:https://t.zsxq.com/j9b21
|
||||
*/
|
||||
package sanbing.jcpp.infrastructure.queue.settings;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Lazy
|
||||
@Data
|
||||
@Component
|
||||
public class QueueAppSettings {
|
||||
|
||||
@Value("${queue.app.topic}")
|
||||
private String topic;
|
||||
|
||||
@Value("${queue.app.partitions}")
|
||||
private int partitions;
|
||||
|
||||
@Value("${queue.app.decoder:protobuf}")
|
||||
private DecoderType decoder;
|
||||
|
||||
public enum DecoderType {
|
||||
protobuf,
|
||||
json
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user