egg-mysql访问 MySQL 数据库(egg-mysql篇)

注意事项: egg.js实现思路:符合Router -> Controller -> Service -> MySQL模式(Config配置) 1.首先安装egg-mysql $ npm i --save egg-mysql 2.开启插件 // config/plugin.js 'use strict'; exports.mysql = { enable: true, package:
相关文章
相关标签/搜索