数据源
parent
8e05fd0d30
commit
9e9c4052e0
|
@ -192,7 +192,7 @@ public class DataDatabaseServiceImpl extends BaseServiceImpl<DataDatabaseDao, Da
|
||||||
properties.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, org.apache.kafka.common.serialization.StringSerializer.class.getName());
|
properties.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, org.apache.kafka.common.serialization.StringSerializer.class.getName());
|
||||||
properties.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, org.apache.kafka.common.serialization.StringSerializer.class.getName());
|
properties.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, org.apache.kafka.common.serialization.StringSerializer.class.getName());
|
||||||
|
|
||||||
// 创建生产者
|
// 创建生产者方娇大傻蛋
|
||||||
Producer<String, String> producer = null;
|
Producer<String, String> producer = null;
|
||||||
try {
|
try {
|
||||||
producer = new org.apache.kafka.clients.producer.KafkaProducer<>(properties);
|
producer = new org.apache.kafka.clients.producer.KafkaProducer<>(properties);
|
||||||
|
|
|
@ -75,7 +75,7 @@ public class DatabaseRedisImpl extends DatabaseMysqlImpl implements IDatabaseInt
|
||||||
cd.setFieldTypeName(dataType);
|
cd.setFieldTypeName(dataType);
|
||||||
int csize = columnSize != null ? Integer.parseInt(columnSize) : 0;
|
int csize = columnSize != null ? Integer.parseInt(columnSize) : 0;
|
||||||
cd.setDisplaySize(csize);
|
cd.setDisplaySize(csize);
|
||||||
cd.setPrecisionSize(csize);
|
cd .setPrecisionSize(csize);
|
||||||
cd.setScaleSize(decimalDigits != null ? Integer.parseInt(decimalDigits) : 0);
|
cd.setScaleSize(decimalDigits != null ? Integer.parseInt(decimalDigits) : 0);
|
||||||
cd.setRemarks(columnComment);
|
cd.setRemarks(columnComment);
|
||||||
break;
|
break;
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue