README.md
启动应用:
mvn spring-boot:run
访问API:
http://localhost:8080/debug/index.html 即可在线查看API手册和调试API。
create user table:
CREATE TABLE users
(
id
int(11) NOT NULL AUTO_INCREMENT,
username
varchar(45) NOT NULL,
password
varchar(45) NOT NULL,
enabled
varchar(45) NOT NULL DEFAULT '1',
PRIMARY KEY (id
)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
CREATE TABLE authorities
(
id
int(11) NOT NULL AUTO_INCREMENT,
username
varchar(45) NOT NULL,
authority
varchar(45) NOT NULL,
PRIMARY KEY (id
)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;