From d12b49dc0cff9978503ffaf8d65451ec71ac41a8 Mon Sep 17 00:00:00 2001 From: "Yangkai.Shen" <237497819@qq.com> Date: Thu, 11 Oct 2018 13:36:45 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 118 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 116 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a093fd8..7e6d0a9 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ spring boot demo 是一个用来学习 spring boot 的项目,已经集成 actu ### 分支: -- master 分支:基于 SpringBoot 版本 2.0.x,每个 module 不额外依赖 parent,可以单独运行,方便大家学习 +- master 分支:基于 SpringBoot 版本 2.0.5.RELEASE,每个 module 的 parent 依赖根目录下的pom.xml,主要用于管理每个module的依赖版本,方便大家学习 - v-1.5.x 分支:基于 SpringBoot 版本 1.5.8.RELEASE,每个 module 均依赖 spring-boot-demo-parent,有挺多同学们反映这种方式对新手不是很友好,运行起来有些难度,因此 ***此分支(v-1.5.x)会暂停开发维护*** ,所有内容会慢慢以 master 分支的形式同步过去,此分支暂未完成的,也会直接在master分支上加,在此分支学习的同学们,仍然可以在此分支学习,但是建议后期切换到master分支,会更加容易。🙂 ### 开发环境 @@ -21,7 +21,7 @@ spring boot demo 是一个用来学习 spring boot 的项目,已经集成 actu 1. `git clone https://github.com/xkcoding/spring-boot-demo.git` 2. 使用 IDEA 打开 clone 下来的项目 3. 在 IDEA 中打开项目 -4. 在 IDEA 中 Maven Projects 的面板导入各个 module 的 `pom.xml` +4. 在 IDEA 中 Maven Projects 的面板导入根目录下 的 `pom.xml` 5. Maven Projects 找不到的童鞋,可以勾上 View -> Tool Buttons ,然后Maven Projects的面板就会出现在IDEA的右侧 6. 找到各个 module 的 Application 类就可以运行各个 module 了 @@ -29,6 +29,120 @@ spring boot demo 是一个用来学习 spring boot 的项目,已经集成 actu [**进度计划**](https://github.com/xkcoding/spring-boot-demo/projects/1?fullscreen=true) 或直接查看 [TODO](./TODO.md) +### 根目录下的 pom.xml + +```xml + + + + 4.0.0 + + com.xkcoding + spring-boot-demo + 0.0.1-SNAPSHOT + + spring-boot-demo-helloworld + spring-boot-demo-properties + spring-boot-demo-actuator + spring-boot-demo-admin-client + spring-boot-demo-admin-server + spring-boot-demo-logback + spring-boot-demo-log-aop + spring-boot-demo-exception-handler + spring-boot-demo-template-freemarker + spring-boot-demo-template-thymeleaf + spring-boot-demo-template-beetl + + pom + + spring-boot-demo + http://xkcoding.com + + + UTF-8 + UTF-8 + 1.8 + 1.8 + 1.8 + 2.0.5.RELEASE + 4.1.17 + 1.20 + + + + + + org.springframework.boot + spring-boot-dependencies + ${spring.boot.version} + pom + import + + + + cn.hutool + hutool-all + ${hutool.version} + + + + eu.bitwalker + UserAgentUtils + ${user.agent.version} + + + + + + + + + maven-clean-plugin + 3.0.0 + + + maven-resources-plugin + 3.0.2 + + + maven-compiler-plugin + 3.7.0 + + + maven-surefire-plugin + 2.20.1 + + + maven-jar-plugin + 3.0.2 + + + maven-install-plugin + 2.5.2 + + + maven-deploy-plugin + 2.8.2 + + + org.springframework.boot + spring-boot-maven-plugin + ${spring.boot.version} + + + + repackage + + + + + + + + +``` + ### 各 Module 介绍 | Module 名称 | Module 介绍 |