Skip to content

Latest commit

 

History

History
49 lines (45 loc) · 1.24 KB

1.安装使用.md

File metadata and controls

49 lines (45 loc) · 1.24 KB

使用hsweb

项目java8开发,使用maven进行管理.

使用

配置pom.xml

 <!--统一依赖管理-->
 <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.hsweb</groupId>
                <artifactId>hsweb-framework</artifactId>
                <version>${hsweb.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
  <!--引入私服-->
  <repositories>
        <repository>
            <id>hsweb-nexus</id>
            <name>Nexus Release Repository</name>
            <url>http://nexus.hsweb.me/content/groups/public/</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>

引入依赖

<!--设置了dependencyManagement,可以不指定版本号-->
<dependency>
        <groupId>org.hsweb</groupId>
        <artifactId>hsweb-web-controller</artifactId>
</dependency>

<dependency>
    <groupId>org.hsweb</groupId>
    <artifactId>hsweb-web-service-simple</artifactId>
</dependency>

<dependency>
    <groupId>org.hsweb</groupId>
    <artifactId>hsweb-web-dao-mybatis</artifactId>
</dependency>