- 在AppModule中配置MySQL数据库连接 - 设置实体自动扫描路径 - 禁用synchronize以保护生产数据
- 在 AppModule 中导入 ConfigModule 和 LoggerModule - 配置全局环境变量支持 - 确保日志服务在整个应用中可用