小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

多模塊SSM RBAC案例項(xiàng)目環(huán)境搭建一項(xiàng)目框架搭建

 印度阿三17 2020-03-14

一項(xiàng)目模塊劃分

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

?

?

二 項(xiàng)目的創(chuàng)建

?

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

File->new->Maven Project

?

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

?

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

右擊rbac項(xiàng)目->new->project->Maven Model

?

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

?

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

?

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

在rbac-manager與rbac-portal的pom.xml文件中加入rbac-common的項(xiàng)目坐標(biāo),表示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的項(xiàng)目坐標(biāo),表示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./POM/4.0.0"
    xmlns:xsi="http://www./2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven./POM/4.0.0 http://maven./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>

?

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

來源:https://www./content-4-659251.html

    本站是提供個(gè)人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多