连接数据库

添加依赖

配置

建立数据库

  • 新建数据库test,但不用建表

    设计实体类

    运行controller

  • 运行后test数据库出现demo表
    操作数据库