项目结构划分

RBAC权限--项目准备

创建项目结构

使用工具:STS

备注: STS的安装

创建项目

创建:atcrowdfunding-parent

1、new ---- 》 Maven Projetc
2、创建一个简单的项目:选择 Create a simple project(skip archetype selection)
3、在Artifact部分中:
GroupId: com.atguigu
Artifact Id: atcrowdfunding-parent
Packaging: pom

创建: atcrowdfunding-common

1、new ---- 》 Maven Projetc
2、创建一个简单的项目:选择 Create a simple project(skip archetype selection)
3、在Artifact部分中:
GroupId: com.atguigu
Artifact Id: atcrowdfunding-common
Packaging: jar

创建: atcrowdfunding-manager

1、new ---- 》 Maven Projetc
2、创建一个简单的项目:选择 Create a simple project(skip archetype selection)
3、在Artifact部分中:
GroupId: com.atguigu
Artifact Id: atcrowdfunding-manager
Packaging: jar

创建: atcrowdfunding-portal

1、new ---- 》 Maven Projetc
2、创建一个简单的项目:选择 Create a simple project(skip archetype selection)
3、在Artifact部分中:
GroupId: com.atguigu
Artifact Id: atcrowdfunding-portal
Packaging: jar

创建: atcrowdfunding-web

1、new ---- 》 Maven Projetc
2、创建一个简单的项目:选择 Create a simple project(skip archetype selection)
3、在Artifact部分中:
GroupId: com.atguigu
Artifact Id: atcrowdfunding-web
Packaging: war

4、发现项目出现了一个x
解决:选择项目—> 点击右键 ----> 选择Properities,找到Project Facets----》 去掉Dynamic web module上的√,点击Apply,选中Dynamic web module的√
----》选择Further configuration available
----》 修改Content directory为 src/main/webapp

项目整合

web 关联 manager与portal

1、打开atcrowdfunding-web的pom.xml
2、选择Dependencies —> Add —》 Manager
选择Dependencies —> Add —》 portal

Manager与portal关联到Common

1、打开atcrowdfunding-Manager的pom.xml, 选择Dependencies —> Add —》 Common
2、打开atcrowdfunding-Portal的pom.xml, 选择Dependencies —> Add —》 Common

Common继承parent

1、打开atcrowdfunding-common的pom.xml
2、选择Overview —> Parent —> select parent, 选择atcrowdfunding-parent

相关文章: