shuzheng 9 лет назад
Родитель
Сommit
f0f51278b9

+ 21 - 11
README.md

@@ -8,34 +8,34 @@ zheng
 |    ├── zheng-upms-dao -- 数据库MyBatisGenerator操作
 |    ├── zheng-upms-service -- 业务逻辑
 |    ├── zheng-upms-client -- SSO登录客户端
-|    └── zheng-upms-server -- 系统及SSO服务端
+|    └── zheng-upms-server -- 系统及SSO服务端[端口:1111]
 ├── zheng-cms -- 内容管理系统
 |    ├── zheng-cms-dao -- 数据库MyBatisGenerator操作
 |    ├── zheng-cms-service -- 业务逻辑
-|    ├── zheng-cms-search -- 搜索服务
-|    ├── zheng-cms-job -- 消息队列、任务调度等
-|    ├── zheng-cms-admin -- 后台管理
-|    └── zheng-cms-web -- 网站前台
+|    ├── zheng-cms-search -- 搜索服务[端口:2221]
+|    ├── zheng-cms-admin -- 后台管理[端口:2222]
+|    ├── zheng-cms-job -- 消息队列、任务调度等[端口:2223]
+|    └── zheng-cms-web -- 网站前台[端口:2224]
 ├── zheng-pay -- 支付系统
 |    ├── zheng-pay-dao -- 数据库MyBatisGenerator操作
 |    ├── zheng-pay-service -- 业务逻辑
 |    ├── zheng-pay-sdk -- 开发工具包
-|    ├── zheng-pay-admin -- 后台管理
-|    └── zheng-pay-web -- 演示示例
+|    ├── zheng-pay-admin -- 后台管理[端口:3331]
+|    └── zheng-pay-web -- 演示示例[端口:3332]
 ├── zheng-ucenter -- 用户系统
 |    ├── zheng-ucenter-dao -- 数据库MyBatisGenerator操作
 |    ├── zheng-ucenter-service -- 业务逻辑
-|    └── zheng-ucenter-home -- 网站前台
+|    └── zheng-ucenter-home -- 网站前台[端口:4441]
 |── zheng-wechat-mp -- 微信公众号管理系统
 |    ├── zheng-wechat-mp-dao -- 数据库MyBatisGenerator操作
 |    ├── zheng-wechat-mp-service -- 业务逻辑
-|    └── zheng-wechat-mp-admin -- 后台管理
+|    └── zheng-wechat-mp-admin -- 后台管理[端口:5551]
 ├── zheng-api -- 接口系统
 |    ├── zheng-api-sdk -- 开发工具包
-|    └── zheng-api-example -- 演示示例
+|    └── zheng-api-example -- 演示示例[端口:6661]
 └── zheng-oss -- 对象存储系统
      ├── zheng-oss-sdk -- 开发工具包
-     └── zheng-oss-web -- 管理界面
+     └── zheng-oss-web -- 管理界面[端口:7771]
 ```
 
 # 后端技术:
@@ -87,6 +87,16 @@ zheng
 * IntelliJ IDEA: 开发IDE
 * PowerDesigner: 建模工具
 
+# 开发环境搭建:
+## 修改本地Host
+* 127.0.0.1	upms.zhangshuzheng.cn
+* 127.0.0.1	cms.zhangshuzheng.cn
+* 127.0.0.1	pay.zhangshuzheng.cn
+* 127.0.0.1	ucenter.zhangshuzheng.cn
+* 127.0.0.1	wechat.zhangshuzheng.cn
+* 127.0.0.1	api.zhangshuzheng.cn
+* 127.0.0.1	oss.zhangshuzheng.cn
+
 # 资源链接
 * Maven [http://maven.apache.org/download.cgi](http://maven.apache.org/download.cgi "Maven")
 * Redis [https://redis.io/download](https://redis.io/download "Redis")

+ 6 - 1
zheng-cms/zheng-cms-admin/pom.xml

@@ -31,6 +31,11 @@
             <groupId>javax.servlet</groupId>
             <artifactId>jstl</artifactId>
         </dependency>
+        <dependency>
+            <groupId>com.zheng</groupId>
+            <artifactId>zheng-upms-client</artifactId>
+            <version>1.0.0</version>
+        </dependency>
     </dependencies>
 
     <profiles>
@@ -80,7 +85,7 @@
                         <contextPath>/zheng-cms-admin</contextPath>
                     </webApp>
                     <httpConnector>
-                        <port>8081</port>
+                        <port>2222</port>
                     </httpConnector>
                     <reload>automatic</reload>
                 </configuration>

+ 1 - 1
zheng-cms/zheng-cms-job/pom.xml

@@ -80,7 +80,7 @@
                         <contextPath>/zheng-cms-job</contextPath>
                     </webApp>
                     <httpConnector>
-                        <port>8082</port>
+                        <port>2223</port>
                     </httpConnector>
                     <reload>automatic</reload>
                 </configuration>

+ 1 - 1
zheng-cms/zheng-cms-search/pom.xml

@@ -80,7 +80,7 @@
                         <contextPath>/zheng-cms-search</contextPath>
                     </webApp>
                     <httpConnector>
-                        <port>8083</port>
+                        <port>2221</port>
                     </httpConnector>
                     <reload>automatic</reload>
                 </configuration>

+ 1 - 1
zheng-cms/zheng-cms-web/pom.xml

@@ -95,7 +95,7 @@
                         <contextPath>/zheng-cms-web</contextPath>
                     </webApp>
                     <httpConnector>
-                        <port>8080</port>
+                        <port>2224</port>
                     </httpConnector>
                     <reload>automatic</reload>
                 </configuration>

+ 1 - 1
zheng-oss/zheng-oss-web/pom.xml

@@ -95,7 +95,7 @@
                         <contextPath>/zheng-oss-web</contextPath>
                     </webApp>
                     <httpConnector>
-                        <port>8080</port>
+                        <port>7771</port>
                     </httpConnector>
                     <reload>automatic</reload>
                 </configuration>

+ 1 - 1
zheng-pay/zheng-pay-admin/pom.xml

@@ -87,7 +87,7 @@
                         <contextPath>/zheng-pay-admin</contextPath>
                     </webApp>
                     <httpConnector>
-                        <port>8080</port>
+                        <port>3331</port>
                     </httpConnector>
                     <reload>automatic</reload>
                 </configuration>

+ 1 - 1
zheng-pay/zheng-pay-web/pom.xml

@@ -87,7 +87,7 @@
                         <contextPath>/zheng-pay-web</contextPath>
                     </webApp>
                     <httpConnector>
-                        <port>8080</port>
+                        <port>3332</port>
                     </httpConnector>
                     <reload>automatic</reload>
                 </configuration>

+ 1 - 1
zheng-ucenter/zheng-ucenter-home/pom.xml

@@ -87,7 +87,7 @@
                         <contextPath>/zheng-ucenter-home</contextPath>
                     </webApp>
                     <httpConnector>
-                        <port>8080</port>
+                        <port>4441</port>
                     </httpConnector>
                     <reload>automatic</reload>
                 </configuration>

+ 47 - 4
zheng-upms/zheng-upms-client/pom.xml

@@ -1,17 +1,18 @@
 <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>
-        <artifactId>zheng-upms</artifactId>
         <groupId>com.zheng</groupId>
+        <artifactId>zheng-upms</artifactId>
         <version>1.0.0</version>
     </parent>
-    <modelVersion>4.0.0</modelVersion>
 
     <artifactId>zheng-upms-client</artifactId>
     <packaging>jar</packaging>
 
     <name>zheng-upms-client</name>
-    <url>http://maven.apache.org</url>
+    <url>http://www.zhangshuzheng.cn</url>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -21,8 +22,50 @@
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
-            <version>3.8.1</version>
+            <version>4.12</version>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>com.zheng</groupId>
+            <artifactId>zheng-upms-service</artifactId>
+            <version>1.0.0</version>
+            <type>jar</type>
+        </dependency>
+        <!-- servlet -->
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>servlet-api</artifactId>
+            <version>2.5</version>
+            <scope>provided</scope>
+        </dependency>
     </dependencies>
+
+    <build>
+        <finalName>zheng-upms-client</finalName>
+        <resources>
+            <resource>
+                <directory>src/main/java</directory>
+                <includes>
+                    <include>**/*.xml</include>
+                </includes>
+                <filtering>true</filtering>
+            </resource>
+            <resource>
+                <directory>src/main/resources</directory>
+            </resource>
+        </resources>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <version>2.18.1</version>
+                <configuration>
+                    <!--是否跳过单元测试-->
+                    <skipTests>true</skipTests>
+                    <!--是否忽略单元测试错误-->
+                    <testFailureIgnore>true</testFailureIgnore>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
 </project>

+ 1 - 1
zheng-upms/zheng-upms-server/pom.xml

@@ -87,7 +87,7 @@
                         <contextPath>/zheng-upms-server</contextPath>
                     </webApp>
                     <httpConnector>
-                        <port>8080</port>
+                        <port>1111</port>
                     </httpConnector>
                     <reload>automatic</reload>
                 </configuration>

+ 1 - 1
zheng-wechat-mp/zheng-wechat-mp-admin/pom.xml

@@ -87,7 +87,7 @@
                         <contextPath>/zheng-wechat-mp-admin</contextPath>
                     </webApp>
                     <httpConnector>
-                        <port>8080</port>
+                        <port>5551</port>
                     </httpConnector>
                     <reload>automatic</reload>
                 </configuration>