Commit a8225354 by ypenglv

修改服务端口

1 parent 9c7bfec0
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:
......
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:
......
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:
......
...@@ -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>
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#
......
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#
......
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#
......
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:9000/swagger-ui.html statusPageUrl: http://127.0.0.1:24000/swagger-ui.html
spring: spring:
cloud: cloud:
gateway: gateway:
......
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:
......
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:
......
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
......
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
......
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
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!