docs: update wg-basic/how-to-build-project-quick
This commit is contained in:
parent
048da41d9a
commit
54ae330f59
@ -2,7 +2,7 @@
|
|||||||
title: 快速构建项目
|
title: 快速构建项目
|
||||||
description: 如何快速构建项目
|
description: 如何快速构建项目
|
||||||
published: true
|
published: true
|
||||||
date: 2021-08-17T14:32:02.426Z
|
date: 2021-08-17T14:43:14.813Z
|
||||||
tags: wg-basic
|
tags: wg-basic
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2021-08-17T13:54:47.580Z
|
dateCreated: 2021-08-17T13:54:47.580Z
|
||||||
@ -333,5 +333,36 @@ logging:
|
|||||||
|
|
||||||
## 静态资源包
|
## 静态资源包
|
||||||
|
|
||||||
|
> **assets\*.zip** 资源包解压之后,将子目录全部放入 **/resources/static/assets/** 目录即可
|
||||||
|
{.is-info}
|
||||||
|
|
||||||
# 启动项目
|
|
||||||
|
| 资源名称 | 说明 |
|
||||||
|
| --- | --- |
|
||||||
|
| [assets1.0.zip](/assets静态资源包/assets1.0.zip) | 默认资源包 |
|
||||||
|
|
||||||
|
# 启动类
|
||||||
|
|
||||||
|
**XXX**Application.java,*XXX* 根据实际情况变化
|
||||||
|
|
||||||
|
```java
|
||||||
|
|
||||||
|
package com.cn.xxx;
|
||||||
|
|
||||||
|
import org.mybatis.spring.annotation.MapperScan;
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
||||||
|
|
||||||
|
@EnableSwagger2
|
||||||
|
@SpringBootApplication(scanBasePackages = {"ink.wgink"})
|
||||||
|
@MapperScan(basePackages = {"ink.wgink.**.dao"})
|
||||||
|
public class XXXApplication {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(XXXApplication.class, args);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user