1.update README

2.密码不用明文存储
This commit is contained in:
FreeeBird
2019-09-20 09:43:40 +08:00
parent 67e329b41d
commit 8619b7a52f
6 changed files with 71 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
username: root
password: 8888
password: root
url: jdbc:mysql://localhost:3306/hotel?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=true
mybatis:
type-aliases-package: classpath*:cn.mafangui.hotel.entity

View File

@@ -81,7 +81,7 @@ CREATE TABLE
IF NOT EXISTS `user_info` (
`user_id` INT NULL AUTO_INCREMENT COMMENT '用户id',
`username` VARCHAR (16) NOT NULL COMMENT '用户名',
`password` VARCHAR (16) NOT NULL COMMENT '密码',
`password` VARCHAR (256) NOT NULL COMMENT '密码',
`name` VARCHAR(16) not NULL COMMENT '姓名',
`gender` CHAR(2) not null DEFAULT '' COMMENT '性别',
`phone` VARCHAR (16) NOT NULL COMMENT '手机号码',