docs: update wg-basic/how-to-build-project-quick

This commit is contained in:
Administrator 2021-08-17 14:45:38 +00:00 committed by John Smith
parent 54ae330f59
commit 1007612712

View File

@ -2,7 +2,7 @@
title: 快速构建项目 title: 快速构建项目
description: 如何快速构建项目 description: 如何快速构建项目
published: true published: true
date: 2021-08-17T14:43:14.813Z date: 2021-08-17T14:45:37.323Z
tags: wg-basic tags: wg-basic
editor: markdown editor: markdown
dateCreated: 2021-08-17T13:54:47.580Z dateCreated: 2021-08-17T13:54:47.580Z
@ -355,8 +355,10 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import springfox.documentation.swagger2.annotations.EnableSwagger2; import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableSwagger2 @EnableSwagger2
@SpringBootApplication(scanBasePackages = {"ink.wgink"}) // Spring 自动扫包根路径,可以配置多个,但第一个必须存在
@MapperScan(basePackages = {"ink.wgink.**.dao"}) @SpringBootApplication(scanBasePackages = {"ink.wgink", "com.cn", "com1.cn"})
// dao 自动扫描根路径,可以配置多个,但第一个必须存在
@MapperScan(basePackages = {"ink.wgink.**.dao", "com.cn.**.dao", "com1.cn.**.dao"})
public class XXXApplication { public class XXXApplication {
public static void main(String[] args) { public static void main(String[] args) {