Spring-boot-plus Quick start Quick Start (1)
Spring-boot-plus quickly starts Quick Start1. Clone project to local git clone git@github.com:geekidea/spring-boot-plus.git2. Maven construction
The local environment is used by default, and the corresponding configuration file: application-local.yml
Mvn clean package3. Create a new database
Database MySQL
The default database name is: spring_boot_plus
Import table structure and data:
Spring-boot-plus\ docs\ spring_boot_plus.sql-- Table structure for ip-- DROP TABLE IF EXISTS `ip` CREATE TABLE `ip` (`ip_ start` varchar (15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `ip_ end` varchar (15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `area` varchar (100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `operator` varchar (200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `id`bigint (20) NOT NULL AUTO_INCREMENT, `ip_start_ num` bigint (20) NOT NULL, `ip_end_ num` bigint (20) NOT NULL PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 526718 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic -Table structure for sys_log---DROP TABLE IF EXISTS `sys_ log` CREATE TABLE `sys_ log` (`type`bigint (18) NOT NULL COMMENT 'primary key', `type` tinyint (1) NULL DEFAULT NULL COMMENT 'type', `content`varchar (255i) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'content', `create_ id`bigint (18) NULL DEFAULT NULL COMMENT 'creator ID', `create_ time`datetime (0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT' creation time' PRIMARY KEY (`log_ id`) USING BTREE) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'Syslog' ROW_FORMAT = Dynamic -Records of sys_log-- INSERT INTO `sys_ log` VALUES (1060438746056376321,0, 'Aids, 100000,' 2018-11-08 15 sys_ 41) INSERT INTO `sys_ log` VALUES (1060438788502732802, 0, 'Bengui, 100000,' 2018-11-08 15 VALUES 42RV 08'); INSERT INTO `sys_ log` VALUES (1060438799600861185,0, 'Cure, 100000,' 2018-11-08 1542RV 10'); INSERT INTO `Log` VALUES (1060438809495224322,0, 'Dust, 100000,' 2018-11-08 15RU 42RV 10')
Ip table here only table structure, the first time to use the project, you do not have to import ip table data!
Https://github.com/geekidea/spring-boot-plus-doc/blob/master/db/ip_data.sql.zip
4. Start redis5. Check if the lombok plug-in is installed
If you encounter an log error, you need to install the lombok plug-in