Skip to content

引入依赖

iusofts edited this page Dec 4, 2018 · 7 revisions

由于目前Maven中央仓库新建项目正在审核中,所以无法直接中央仓库获取依赖,只能将源码clone到本地编译打包安装。

本地打包

# clone https://github.com/iusofts/blades.git
# cd blades
# mvn clean compile package install

引入依赖

<dependency>
    <groupId>com.iusofts.blades</groupId>
    <artifactId>blades</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
    <groupId>com.iusofts.blades</groupId>
    <artifactId>blades-swagger-ui</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

注:如果项目中已经集成了swagger-ui,请先剔除原始依赖,防止文档中无法正常显示服务名称。

下一步:添加配置

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.