li3807
li3807
sentinel 客户端的向 控制台提交的 和端口 能否支持 spring boot 的配置文件,而不是使用 JVM参数,使用 jvm 参数不便与包装
Model code(模型代码): ``` class UserInfoModel(BaseModel): """用户信息,基本信息和账号信息 User information, basic information and account information """ user_id = CharField(primary_key=True, null=False, max_length=64) nickname = CharField(max_length=64) profile_photo = CharField(null=True, max_length=255) name = CharField(max_length=32) status...
I created the BaseModel class to handle the problem of database selection, using the Mysql database。
BaseModel ``` import logging from peewee import Model from DatabaseCluster import DatabaseLocalUtil from DatabaseUtil import DatabaseUtil class BaseModel(Model): """ 模型基类,定义了模型的基本信息,数据库集群连接 Model base class, defines the basic information of the model,...
配置文件读取能支持从 spring cloud config 的配置中心来读取配置文件