配置服务器: SRC \主\资源\用configPath \云配置回购\ movie.yml:
---
spring:
profiles: cloud
jpa:
show_sql: false
database: MYSQL
hibernate:
ddl-auto: none
eureka:
client:
serviceUrl:
defaultZone: http://discovery-kb.cfapps.io/eureka/
instance:
hostname: movie-kb.cfapps.io
nonSecurePort: 80
ribbon:
eureka:
enabled: true
---
application:
name: movie
spring:
profiles: lattice
jpa:
show_sql: false
hibernate:
ddl-auto: none
datasource:
platform: hsqldb
server:
port: 9006
eureka:
client:
serviceUrl:
defaultZone: ${EUREKA_CLIENT_SERVICEURL_DEFAULTZONE:http://localhost:8761/eureka/}
instance:
hostname: ${vcap.application.uris[0]:localhost:9006}
nonSecurePort: 80
ribbon:
eureka:
enabled: true
---
spring:
profiles: development
jpa:
show_sql: false
hibernate:
ddl-auto: update
server:
port: 9005
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
instance:
preferIpAddress: true
ribbon:
eureka:
enabled: true
当我开始使用移动服务时,Tomcat使用端口初始化:8080(http)。 为什么不9005? 搬家服务: SRC \主\资源\ application.yml:
spring:
profiles:
active: development