From f2b5928c3dcd4c133a31b5a04d7d13f4e467b7f8 Mon Sep 17 00:00:00 2001 From: JeffLi1993 Date: Wed, 8 Feb 2017 10:53:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20ReadMe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README | 0 README.md | 18 +++++++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 README diff --git a/README b/README deleted file mode 100644 index e69de29..0000000 diff --git a/README.md b/README.md index 3368690..7f9409e 100644 --- a/README.md +++ b/README.md @@ -8,20 +8,20 @@ QQ 群
编程之美① 365234583 [立即加入](http://jq.qq.com/?_wv=1027&k=Sx4s4U "编程之美")
编程之美② 290714704 [立即加入](http://jq.qq.com/?_wv=1027&k=Sx4s4U "编程之美") -## 项目结构 -##### 基础 +## 一、项目结构 +##### a. 基础 springboot 版本 1.5.1.RELEASE - springboot-helloworld
入门 HelloWorld 案例,Quick Start - [Spring Boot 之 HelloWorld 详解](http://www.bysocket.com/?p=1124 "Spring Boot 之 HelloWorld详解")
-##### Web 开发相关 +##### b. Web 开发相关 - springboot-mybatis
Springboot 整合 Mybatis 的完整 Web 案例 - springboot-restful-json
Springboot 实现 Restful 服务,基于 HTTP / JSON 传输 -## 项目 Quick Start 快速开发指南 -#### 基本环境配置 +## 二、项目 Quick Start 快速开发指南 +#### a. 基本环境配置 在 MySQL 中,创建数据库 springbootdb: ```` CREATE DATABASE springbootdb; @@ -41,19 +41,19 @@ CREATE TABLE `city` ( ```` INSERT city VALUES (1 ,1,'温岭市','BYSocket 的家在温岭。'); ```` -### 运行 springboot-mybatis 工程 +### 《运行 springboot-mybatis 工程》 首先 check 基本环境配置完成,创建好数据库和表。 -#### 修改数据库配置 +#### 1. 修改数据库配置 配置文件地址:springboot-mybatis/src/main/resources/application.properties 修改相应的数据源配置,比如账号、密码等 -#### 编译工程 +#### 2. 编译工程 在项目根目录 `springboot-learning-example`,运行 maven 指令: ```` mvn clean install ```` -#### 运行工程 +#### 3. 运行工程 右键运行工程包中 `org.spring.springboot.Application` Spring Boot 应用启动类的 main 函数,然后在浏览器访问: ````` http://localhost:8080/api/city?cityName=温岭市