基于springboot+vue的管理系统(数据库创建+数据源)

create table user
(
    id int auto_increment comment '主键'
        primary key,
    accountnum VarChar(20) null comment '账号',
    username VarChar(50) not null comment '名字',
    password VarChar(20) not null comment '密码',
    userage int null,
    usersex int null comment '性别',
    department VarChar(20) null comment '科室',
    userphone VarChar(20) null comment '电话',
    role_id int null comment '角色 0超级管理员,1普通管理员,2药物管理员,3医生,4护士',
    inValid VarChar(4) default 'Y' null comment '是否有效 Y有效,其他无效'
)
charset=utf8

将sql语句添加到mysql-front

在项目中修改名称

添加代码

​
server:
  port:8090
# 数据源配置
spring:
  datasource:
        url: jdbc:mysql://localhost:3306/aaa?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
        username: root
        password: 111

​

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值