update:完善数据库和Kafka相关结构

This commit is contained in:
2024-12-23 12:25:36 +08:00
parent aaf297717a
commit 562b1add2a
8 changed files with 78 additions and 9 deletions

View File

@@ -1,4 +0,0 @@
[server]
listen = 0.0.0.0
port = 8080
debug = true

View File

@@ -1,8 +1,10 @@
import configparser
config_file_path = '/conf/config.ini'
config = configparser.ConfigParser()
config_file_path = "config.ini"
def get_config_object(): return config
""" 返回配置对象 """
def get_config_object():
""" 返回配置对象 """
config = configparser.ConfigParser()
config.read(config_file_path, encoding='utf-8')
return config