瀏覽代碼

estateagents-nj

胡轶钦 5 年之前
父節點
當前提交
3843d908f9
共有 2 個檔案被更改,包括 8 行新增2 行删除
  1. 6
    0
      pom.xml
  2. 2
    2
      src/main/resources/application-nj.yml

+ 6
- 0
pom.xml 查看文件

@@ -144,6 +144,12 @@
144 144
 				<profiles.active>demo</profiles.active>
145 145
 			</properties>
146 146
 		</profile>
147
+		<profile>
148
+			<id>nj</id>
149
+			<properties>
150
+				<profiles.active>nj</profiles.active>
151
+			</properties>
152
+		</profile>
147 153
 	</profiles>
148 154
 	<build>
149 155
 		<plugins>

+ 2
- 2
src/main/resources/application-nj.yml 查看文件

@@ -1,12 +1,12 @@
1 1
 server:
2
-  port: 8003
2
+  port: 8007
3 3
 spring:
4 4
   application:
5 5
     name: estateagents
6 6
   datasource:
7 7
     username: estateagents
8 8
     password: DQ@0lW##kBb2+-jPZ
9
-    url: jdbc:mysql://rm-uf6z3z6jq11x653d77o.mysql.rds.aliyuncs.com:3306/estateagents2?useUnicode=true&serverTimezone=CTT&characterEncoding=utf8&allowMultiQueries=true&autoReconnect=true&zeroDateTimeBehavior=convertToNull
9
+    url: jdbc:mysql://rm-uf6z3z6jq11x653d77o.mysql.rds.aliyuncs.com:3306/estateagents_nj?useUnicode=true&serverTimezone=CTT&characterEncoding=utf8&allowMultiQueries=true&autoReconnect=true&zeroDateTimeBehavior=convertToNull
10 10
     driver-class-name: com.mysql.cj.jdbc.Driver
11 11
     initial-size: 10 # 初始化连接数
12 12
     max-active: 20 # 最大连接数