Skip to content

javalover0809/backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backend_csdn

一个简单的springboot前后端交互demo,目前只写了页面跳转和简单的登录功能,有时间再来优化具体页面内容和数据库。
前端页面和脚本均为模板,来自网络。
数据库(springboot_backend)目前只有一张表(user):
/*
Navicat MySQL Data Transfer

Source Server : mysql_db
Source Server Version : 50721
Source Host : localhost:3306
Source Database : springboot_backend

Target Server Type : MYSQL
Target Server Version : 50721
File Encoding : 65001

Date: 2018-11-30 21:39:47
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS user;
CREATE TABLE user (
id int(11) NOT NULL AUTO_INCREMENT,
username varchar(255) NOT NULL,
password varchar(255) NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO user VALUES ('1', 'admin', 'admin');

切换环境的配置文件

> java -jar backend-0.0.1-SNAPSHOT.jar --spring.profiles.active=[dev/test]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published