免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
多模塊SSM RBAC案例項目環(huán)境搭建一項目框架搭建

一項目模塊劃分

項目的模塊的劃分與依賴關(guān)系如下圖

?

?

二 項目的創(chuàng)建

?

(1)創(chuàng)建父項目

File->new->Maven Project

?

創(chuàng)建父項目時,注意打包方式是pom

?

(2) 子項目創(chuàng)建

右擊rbac項目->new->project->Maven Model

?

注意:rbac-common、rabc-manager、rbac-portal的打包方式是jar,rbac-web的打包方式是web。在rbac-web中可能會報錯,原因是沒有web.xml文件,在src/main/webapp/WEB-INF/目錄下創(chuàng)建一個web.xml就行了

?

(3) 項目創(chuàng)建后的項目結(jié)構(gòu)

?

(4)添加各個模塊間的依賴關(guān)系

在rbac-manager與rbac-portal的pom.xml文件中加入rbac-common的項目坐標,表示manager與portal模塊依賴common模塊

    <dependencies>        <dependency>            <groupId>com.ssm</groupId>            <artifactId>rbac-common</artifactId>            <version>0.0.1-SNAPSHOT</version>        </dependency>    </dependencies>

?

在rbac-web的pom.xml文件中加入rbac-manager與rbac-portal的項目坐標,表示web模塊依賴manager與portal模塊

        <dependency>                <groupId>com.ssm</groupId>                <artifactId>rbac-manager</artifactId>                <version>0.0.1-SNAPSHOT</version>        </dependency>        <dependency>                <groupId>com.ssm</groupId>                <artifactId>rbac-portal</artifactId>                <version>0.0.1-SNAPSHOT</version>        </dependency>    

并在rbac-web的pom.xml中加入相應(yīng)的插件,rbac-web的pom.xml文件如下

<project xmlns="http://maven.apache.org/POM/4.0.0"    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">    <modelVersion>4.0.0</modelVersion>    <parent>        <groupId>com.ssm</groupId>        <artifactId>rbac</artifactId>        <version>0.0.1-SNAPSHOT</version>    </parent>    <artifactId>rbac-web</artifactId>    <packaging>war</packaging>    <build>        <plugins>            <plugin>                <groupId>org.apache.maven.plugins</groupId>                <artifactId>maven-compiler-plugin</artifactId>                <version>3.6.0</version>                <configuration>                    <source>1.8</source>                    <target>1.8</target>                </configuration>            </plugin>            <plugin>                <artifactId>maven-war-plugin</artifactId>                <configuration>                    <version>3.2.3</version>                    <webXml>src\main\webapp\WEB-INF\web.xml</webXml>                </configuration>            </plugin>        </plugins>    </build>    <dependencies>        <dependency>                <groupId>com.ssm</groupId>                <artifactId>rbac-manager</artifactId>                <version>0.0.1-SNAPSHOT</version>        </dependency>        <dependency>                <groupId>com.ssm</groupId>                <artifactId>rbac-portal</artifactId>                <version>0.0.1-SNAPSHOT</version>        </dependency>    </dependencies></project>

?

至此整個項目的基本結(jié)構(gòu)就搭建完了

來源:https://www.icode9.com/content-4-659251.html
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
Maven多模塊布局實例詳解
IntelliJ IDEA創(chuàng)建多服務(wù)模塊的Spring Cloud微服務(wù)項目
Maven使用教程
Maven入門教程(一)
徹底理解maven
Spring Boot Maven多模塊項目搭建
更多類似文章 >>
生活服務(wù)
分享 收藏 導長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服