Ver Fonte

1.修改pom配置。

tomatozq há 5 anos atrás
pai
commit
d453ebb5dd
2 ficheiros alterados com 31 adições e 21 exclusões
  1. 22 13
      pom.xml
  2. 9 8
      src/main/resources/application-production.yml

+ 22 - 13
pom.xml

@@ -10,8 +10,9 @@
     </parent>
     <groupId>com.jpsoft</groupId>
     <artifactId>smart-community-server</artifactId>
-    <version>0.0.1-SNAPSHOT</version>
+    <version>1.0.0</version>
     <name>smart-community-server</name>
+    <packaging>war</packaging>
     <description>智慧小区</description>
 
     <properties>
@@ -28,20 +29,19 @@
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-web</artifactId>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.springframework.boot</groupId>
+                    <artifactId>spring-boot-starter-tomcat</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
-
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-devtools</artifactId>
             <scope>runtime</scope>
             <optional>true</optional>
         </dependency>
-        <dependency>
-            <groupId>org.projectlombok</groupId>
-            <artifactId>lombok</artifactId>
-            <optional>true</optional>
-        </dependency>
-
         <!--		<dependency>-->
         <!--			<groupId>org.slf4j</groupId>-->
         <!--			<artifactId>slf4j-api</artifactId>-->
@@ -261,19 +261,20 @@
                     <artifactId>spring-boot-starter-tomcat</artifactId>
                 </dependency>
             </dependencies>
-            <activation>
-                <activeByDefault>true</activeByDefault>
-            </activation>
             <properties>
                 <active.profile>dev</active.profile>
             </properties>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
         </profile>
         <profile>
             <id>test</id>
             <dependencies>
                 <dependency>
-                    <groupId>org.springframework.boot</groupId>
-                    <artifactId>spring-boot-starter-tomcat</artifactId>
+                    <groupId>javax.servlet</groupId>
+                    <artifactId>javax.servlet-api</artifactId>
+                    <version>3.1.0</version>
                     <scope>provided</scope>
                 </dependency>
             </dependencies>
@@ -286,6 +287,14 @@
             <properties>
                 <active.profile>production</active.profile>
             </properties>
+            <dependencies>
+                <dependency>
+                    <groupId>javax.servlet</groupId>
+                    <artifactId>javax.servlet-api</artifactId>
+                    <version>3.1.0</version>
+                    <scope>provided</scope>
+                </dependency>
+            </dependencies>
         </profile>
     </profiles>
 </project>

+ 9 - 8
src/main/resources/application-production.yml

@@ -5,23 +5,24 @@ server:
 
 spring:
   datasource:
-    url: jdbc:log4jdbc:mysql://10.10.0.2:3306/smart-community?autoReconnect=true&characterEncoding=utf8&serverTimezone=GMT%2B8
-    username: smart
-    password: smart
+    url: jdbc:log4jdbc:mysql://127.0.0.1:3306/smart-community?autoReconnect=true&characterEncoding=utf8&serverTimezone=GMT%2B8
+    username: root
+    password: slgo^Root_!Q@W#E)P(O*I
   devtools:
     restart:
       enabled: true
   redis:
     # Redis数据库索引(默认为0)
-    database: 5
+    database: 1
     # Redis服务器地址
     host: 127.0.0.1
     # Redis服务器连接端口
     port: 6379
+    password: 123456
 
 logger:
   level: WARN
-  dir: E:\\smart\\logs
+  dir: /opt/smart-community-server/logs
 
 netty:
   port: 9966    #监听端口
@@ -30,7 +31,7 @@ springfox:
   documentation:
     swagger:
       v2:
-        host: www.wzgh.org
+        host: wisdomhouseadmin.sudaonline.net
 
 wx:
   pay:
@@ -39,5 +40,5 @@ wx:
     mchId: 1500160622
     subMchId: 1505070291
     mchKey: jpsoft11111111111111111111111111
-    notifyUrl: http://www.wzgh.org/smart-server/wxPay/payNotify
-    ip: 122.228.31.242
+    notifyUrl: http://wisdomhouseadmin.sudaonline.net/wxPay/payNotify
+    ip: 101.37.31.116