server:
port: 1005
context-path: /
# 数据源配置
spring:
application:
name: microservice-student
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/db_springcloud
username: root
password: root
jpa:
hibernate:
ddl-auto: update
show-sql: true
eureka:
instance:
hostname: localhost #eureka客户端主机实例名称
appname: microservice-student #客户端服务名
instance-id: microservice-student-hystrix:1005 #客户端实例名称
prefer-ip-address: true #显示IP
client:
service-url:
# 单机 defaultZone: http://localhost:2001/eureka #把服务注册到eureka注册中心
defaultZone: http://eureka2001.java1234.com:2001/eureka/
info:
groupId: $project.groupId$
artifactId: $project.artifactId$
version: $project.version$
负责人: 张三
联系电话: 110
#apollo配置
app:
id: microservice-student-provider-hystrix-1005
apollo:
meta: http://localhost:8080
bootstrap:
enabled: true
eagerLoad:
enabled: true
mybatis:
mapper-locations: classpath:mapping/*Mapper.xml
type-aliases-package: com.java1234.entity
#showSql
logging:
level:
com:
java1234:
mapper : debug