From fa544080dc3f2edc79cf44f8c6a33791745721c7 Mon Sep 17 00:00:00 2001
From: Administrator <450292408@qq.com>
Date: Tue, 17 Aug 2021 13:54:49 +0000
Subject: [PATCH] docs: create wg-basic/how-to-build-project-quick
---
wg-basic/how-to-build-project-quick.md | 120 +++++++++++++++++++++++++
1 file changed, 120 insertions(+)
create mode 100644 wg-basic/how-to-build-project-quick.md
diff --git a/wg-basic/how-to-build-project-quick.md b/wg-basic/how-to-build-project-quick.md
new file mode 100644
index 0000000..2ff6249
--- /dev/null
+++ b/wg-basic/how-to-build-project-quick.md
@@ -0,0 +1,120 @@
+---
+title: 快速构建项目
+description: 如何快速构建项目
+published: true
+date: 2021-08-17T13:54:47.580Z
+tags: wg-basic
+editor: markdown
+dateCreated: 2021-08-17T13:54:47.580Z
+---
+
+# 创建项目
+
+使用IDEA创建SpringBoot项目
+
+
+
+| 名称 | 说明 |
+|--|--|
+| Name | 项目名称,推荐使用英文单词组合创建名字,单词之间用英文减号“-”链接 |
+| Languate | 项目语言,这里默认Java |
+| Type | 依赖管理工具,这里默认Maven |
+| Group | 组ID,应为公司域名倒叙写,如com.cn |
+| Artifact | 项目唯一标识,推荐使用英文单词组合创建名字,单词之间用英文减号“-”链接,默认与项目名称一致 |
+| Package name | 启动类所在包 |
+| Project SDK | 这里选择1.8 |
+| Java | java版本,这里与SDK同步,选择8 |
+| Packaging | 打包方式,默认为Jar |
+
+注意:这里SpringBoot的版本在 **2.1.2.RELEASE** 版本之上
+
+
+# POM依赖
+
+properties属性
+
+```xml
+
+ 1.8
+ 2.1.4
+ 8.0.22
+ 1.1.9
+
+```
+
+dependencies依赖
+
+1. SpringBoot项目必须依赖
+```xml
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-thymeleaf
+
+
+ org.springframework.boot
+ spring-boot-starter-freemarker
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.version}
+ runtime
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+ org.mybatis.spring.boot
+ mybatis-spring-boot-starter
+ ${spring-mybatis.version}
+
+
+ com.alibaba
+ druid-spring-boot-starter
+ ${druid.version}
+
+
+ junit
+ junit
+ test
+
+
+```
+
+2. wg-basic基础项目所需依赖
+```xml
+
+
+
+ ink.wgink
+ service-role
+ 1.0-SNAPSHOT
+
+
+
+ ink.wgink
+ login-base
+ 1.0-SNAPSHOT
+
+
+```
+
+# 配置文件
+
+在resources目录下,创建application.yml配置
+
+```yml
+
+```
+
+# 静态资源
+
+
+# 启动项目
\ No newline at end of file