Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
polysoft-nafmii
/
polysoft-parent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a8225354
authored
Apr 30, 2021
by
ypenglv
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改服务端口
1 parent
9c7bfec0
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
77 additions
and
32 deletions
nafmii-admin/src/main/resources/application-dev.yml
nafmii-admin/src/main/resources/application-prod.yml
nafmii-admin/src/main/resources/application-test.yml
nafmii-app/pom.xml
nafmii-app/src/main/resources/application-dev.yml
nafmii-app/src/main/resources/application-prod.yml
nafmii-app/src/main/resources/application-test.yml
nafmii-gateway/src/main/resources/application-dev.yml
nafmii-gateway/src/main/resources/application-prod.yml
nafmii-gateway/src/main/resources/application-test.yml
nafmii-quartz/src/main/resources/application-dev.yml
nafmii-quartz/src/main/resources/application-prod.yml
nafmii-quartz/src/main/resources/application-test.yml
nafmii-admin/src/main/resources/application-dev.yml
View file @
a822535
eureka
:
eureka
:
client
:
client
:
serviceUrl
:
serviceUrl
:
defaultZone
:
http://127.0.0.1:
8761
/eureka
defaultZone
:
http://127.0.0.1:
20000
/eureka
instance
:
instance
:
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
prefer-ip-address
:
true
prefer-ip-address
:
true
statusPageUrl
:
http://127.0.0.1:
8001
/swagger-ui.html
statusPageUrl
:
http://127.0.0.1:
21000
/swagger-ui.html
logging
:
logging
:
config
:
classpath:logback-spring.xml
config
:
classpath:logback-spring.xml
mybatis
:
mybatis
:
...
...
nafmii-admin/src/main/resources/application-prod.yml
View file @
a822535
eureka
:
eureka
:
client
:
client
:
serviceUrl
:
serviceUrl
:
defaultZone
:
http://127.0.0.1:
8761
/eureka
defaultZone
:
http://127.0.0.1:
20000
/eureka
instance
:
instance
:
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
prefer-ip-address
:
true
prefer-ip-address
:
true
statusPageUrl
:
http://127.0.0.1:
8001
/swagger-ui.html
statusPageUrl
:
http://127.0.0.1:
21000
/swagger-ui.html
logging
:
logging
:
config
:
classpath:logback-spring.xml
config
:
classpath:logback-spring.xml
mybatis
:
mybatis
:
...
...
nafmii-admin/src/main/resources/application-test.yml
View file @
a822535
eureka
:
eureka
:
client
:
client
:
serviceUrl
:
serviceUrl
:
defaultZone
:
http://127.0.0.1:
8761
/eureka
defaultZone
:
http://127.0.0.1:
20000
/eureka
instance
:
instance
:
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
prefer-ip-address
:
true
prefer-ip-address
:
true
statusPageUrl
:
http://127.0.0.1:
8001
/swagger-ui.html
statusPageUrl
:
http://127.0.0.1:
21000
/swagger-ui.html
logging
:
logging
:
config
:
classpath:logback-spring.xml
config
:
classpath:logback-spring.xml
mybatis
:
mybatis
:
...
...
nafmii-app/pom.xml
View file @
a822535
...
@@ -15,11 +15,36 @@
...
@@ -15,11 +15,36 @@
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<description>
移动端应用服务
</description>
<description>
移动端应用服务
</description>
<properties>
<properties>
<java.version>
1.8
</java.version>
<java.version>
1.8
</java.version>
<spring-cloud.version>
Greenwich.RELEASE
</spring-cloud.version>
<spring-cloud.version>
Greenwich.RELEASE
</spring-cloud.version>
</properties>
</properties>
<!--区分环境打包-->
<profiles>
<profile>
<id>
dev
</id>
<properties>
<env>
dev
</env>
</properties>
<activation>
<!--指定默认激活-->
<activeByDefault>
true
</activeByDefault>
</activation>
</profile>
<profile>
<id>
test
</id>
<properties>
<env>
test
</env>
</properties>
</profile>
<profile>
<id>
prod
</id>
<properties>
<env>
prod
</env>
</properties>
</profile>
</profiles>
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
org.nafmii
</groupId>
<groupId>
org.nafmii
</groupId>
...
@@ -30,13 +55,17 @@
...
@@ -30,13 +55,17 @@
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-sleuth -->
<dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-sleuth
</artifactId>
<artifactId>
spring-cloud-starter-sleuth
</artifactId>
<version>
2.2.4.RELEASE
</version>
</dependency>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-sleuth-zipkin -->
<dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-sleuth-zipkin
</artifactId>
<artifactId>
spring-cloud-sleuth-zipkin
</artifactId>
<version>
2.2.4.RELEASE
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
...
@@ -72,6 +101,28 @@
...
@@ -72,6 +101,28 @@
</executions>
</executions>
</plugin>
</plugin>
</plugins>
</plugins>
<finalName>
${project.artifactId}-${project.version}
</finalName>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
<excludes>
<exclude>
application-dev.yml
</exclude>
<exclude>
application-test.yml
</exclude>
<exclude>
application-prod.yml
</exclude>
</excludes>
</resource>
<!--需要动态添加的资源-->
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
<includes>
<!--读取打包命令中指定的环境-->
<include>
application-${env}.yml
</include>
<include>
application.yml
</include>
</includes>
</resource>
</resources>
</build>
</build>
</project>
</project>
nafmii-app/src/main/resources/application-dev.yml
View file @
a822535
eureka
:
eureka
:
client
:
client
:
serviceUrl
:
serviceUrl
:
defaultZone
:
http://127.0.0.1:
8761
/eureka
defaultZone
:
http://127.0.0.1:
20000
/eureka
instance
:
instance
:
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
prefer-ip-address
:
true
prefer-ip-address
:
true
statusPageUrl
:
http://127.0.0.1:
8002
/swagger-ui.html
statusPageUrl
:
http://127.0.0.1:
22000
/swagger-ui.html
logging
:
logging
:
config
:
classpath:logback-spring.xml
config
:
classpath:logback-spring.xml
mybatis
:
mybatis
:
mapper-locations
:
classpath:mapper/*.xml
mapper-locations
:
classpath:mapper/*.xml
server
:
port
:
8002
spring
:
spring
:
application
:
name
:
nafmii-app
datasource
:
datasource
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
password
:
Moxi123#
password
:
Moxi123#
...
...
nafmii-app/src/main/resources/application-prod.yml
View file @
a822535
eureka
:
eureka
:
client
:
client
:
serviceUrl
:
serviceUrl
:
defaultZone
:
http://127.0.0.1:
8761
/eureka
defaultZone
:
http://127.0.0.1:
20000
/eureka
instance
:
instance
:
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
prefer-ip-address
:
true
prefer-ip-address
:
true
statusPageUrl
:
http://127.0.0.1:
8002
/swagger-ui.html
statusPageUrl
:
http://127.0.0.1:
22000
/swagger-ui.html
logging
:
logging
:
config
:
classpath:logback-spring.xml
config
:
classpath:logback-spring.xml
mybatis
:
mybatis
:
mapper-locations
:
classpath:mapper/*.xml
mapper-locations
:
classpath:mapper/*.xml
server
:
port
:
8002
spring
:
spring
:
application
:
name
:
nafmii-app
datasource
:
datasource
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
password
:
Moxi123#
password
:
Moxi123#
...
...
nafmii-app/src/main/resources/application-test.yml
View file @
a822535
eureka
:
eureka
:
client
:
client
:
serviceUrl
:
serviceUrl
:
defaultZone
:
http://127.0.0.1:
8761
/eureka
defaultZone
:
http://127.0.0.1:
20000
/eureka
instance
:
instance
:
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
prefer-ip-address
:
true
prefer-ip-address
:
true
statusPageUrl
:
http://127.0.0.1:
8002
/swagger-ui.html
statusPageUrl
:
http://127.0.0.1:
22000
/swagger-ui.html
logging
:
logging
:
config
:
classpath:logback-spring.xml
config
:
classpath:logback-spring.xml
mybatis
:
mybatis
:
mapper-locations
:
classpath:mapper/*.xml
mapper-locations
:
classpath:mapper/*.xml
server
:
port
:
8002
spring
:
spring
:
application
:
name
:
nafmii-app
datasource
:
datasource
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
driver-class-name
:
com.mysql.cj.jdbc.Driver
password
:
Moxi123#
password
:
Moxi123#
...
...
nafmii-gateway/src/main/resources/application-dev.yml
View file @
a822535
eureka
:
eureka
:
client
:
client
:
serviceUrl
:
serviceUrl
:
defaultZone
:
http://localhost:
8761
/eureka/
defaultZone
:
http://localhost:
20000
/eureka/
instance
:
instance
:
prefer-ip-address
:
true
prefer-ip-address
:
true
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
statusPageUrl
:
http://127.0.0.1:
9
000/swagger-ui.html
statusPageUrl
:
http://127.0.0.1:
24
000/swagger-ui.html
spring
:
spring
:
cloud
:
cloud
:
gateway
:
gateway
:
...
...
nafmii-gateway/src/main/resources/application-prod.yml
View file @
a822535
eureka
:
eureka
:
client
:
client
:
serviceUrl
:
serviceUrl
:
defaultZone
:
http://localhost:
8761
/eureka/
defaultZone
:
http://localhost:
20000
/eureka/
instance
:
instance
:
prefer-ip-address
:
true
prefer-ip-address
:
true
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
statusPageUrl
:
http://127.0.0.1:24000/swagger-ui.html
spring
:
spring
:
cloud
:
cloud
:
gateway
:
gateway
:
...
...
nafmii-gateway/src/main/resources/application-test.yml
View file @
a822535
eureka
:
eureka
:
client
:
client
:
serviceUrl
:
serviceUrl
:
defaultZone
:
http://localhost:
8761
/eureka/
defaultZone
:
http://localhost:
20000
/eureka/
instance
:
instance
:
prefer-ip-address
:
true
prefer-ip-address
:
true
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
statusPageUrl
:
http://127.0.0.1:24000/swagger-ui.html
spring
:
spring
:
cloud
:
cloud
:
gateway
:
gateway
:
...
...
nafmii-quartz/src/main/resources/application-dev.yml
View file @
a822535
eureka
:
eureka
:
client
:
client
:
serviceUrl
:
serviceUrl
:
defaultZone
:
http://localhost:
8761
/eureka/
defaultZone
:
http://localhost:
20000
/eureka/
instance
:
instance
:
prefer-ip-address
:
true
prefer-ip-address
:
true
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
statusPageUrl
:
http://127.0.0.1:23000/swagger-ui.html
spring
:
spring
:
quartz
:
quartz
:
job-store-type
:
jdbc
job-store-type
:
jdbc
...
...
nafmii-quartz/src/main/resources/application-prod.yml
View file @
a822535
eureka
:
eureka
:
client
:
client
:
serviceUrl
:
serviceUrl
:
defaultZone
:
http://localhost:
8761
/eureka/
defaultZone
:
http://localhost:
20000
/eureka/
instance
:
instance
:
prefer-ip-address
:
true
prefer-ip-address
:
true
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
statusPageUrl
:
http://127.0.0.1:23000/swagger-ui.html
spring
:
spring
:
quartz
:
quartz
:
job-store-type
:
jdbc
job-store-type
:
jdbc
...
...
nafmii-quartz/src/main/resources/application-test.yml
View file @
a822535
eureka
:
eureka
:
client
:
client
:
serviceUrl
:
serviceUrl
:
defaultZone
:
http://localhost:
8761
/eureka/
defaultZone
:
http://localhost:
20000
/eureka/
instance
:
instance
:
prefer-ip-address
:
true
prefer-ip-address
:
true
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
statusPageUrl
:
http://127.0.0.1:23000/swagger-ui.html
spring
:
spring
:
quartz
:
quartz
:
job-store-type
:
jdbc
job-store-type
:
jdbc
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment