From 66ec8abb982c3533bd645b8d65daf1a94d6f8ea1 Mon Sep 17 00:00:00 2001 From: yirenyishi Date: Sun, 10 Sep 2017 14:07:06 +0800 Subject: [PATCH] init provider yml --- application.yml | 33 +++++++++++++++++++++ springcloud-provider-config/application.yml | 33 +++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 application.yml create mode 100644 springcloud-provider-config/application.yml diff --git a/application.yml b/application.yml new file mode 100644 index 0000000..ed580d3 --- /dev/null +++ b/application.yml @@ -0,0 +1,33 @@ +server: + port: 8101 +# context-path: /provider +spring: + jpa: + database-platform: org.hibernate.dialect.MySQLDialect + show-sql: true + hibernate: + ddl-auto: update + datasource: + druid: + url: jdbc:mysql://localhost:3306/spcloud + username: root + password: booszy + application: + name: springcloud-provider +logging: + level: + root: info + org.hibernate : info + org.hibernate.type.descriptor.sql.BasicBinder: TRACE + org.hibernate.type.descriptor.sql.BasicExtractor: TRACE + com.yasaka.stock : debug +eureka: + client: + healthcheck: + enabled: true + service-url: + defaultZone: http://root:booszy@localhost:8761/eureka + instance: +# home-page-url-path: /provider + prefer-ip-address: true + instance-id: ${spring.application.name}:${spring.cloud.client.ipAddress}:${spring.application.instance_id:${server.port}} \ No newline at end of file diff --git a/springcloud-provider-config/application.yml b/springcloud-provider-config/application.yml new file mode 100644 index 0000000..ed580d3 --- /dev/null +++ b/springcloud-provider-config/application.yml @@ -0,0 +1,33 @@ +server: + port: 8101 +# context-path: /provider +spring: + jpa: + database-platform: org.hibernate.dialect.MySQLDialect + show-sql: true + hibernate: + ddl-auto: update + datasource: + druid: + url: jdbc:mysql://localhost:3306/spcloud + username: root + password: booszy + application: + name: springcloud-provider +logging: + level: + root: info + org.hibernate : info + org.hibernate.type.descriptor.sql.BasicBinder: TRACE + org.hibernate.type.descriptor.sql.BasicExtractor: TRACE + com.yasaka.stock : debug +eureka: + client: + healthcheck: + enabled: true + service-url: + defaultZone: http://root:booszy@localhost:8761/eureka + instance: +# home-page-url-path: /provider + prefer-ip-address: true + instance-id: ${spring.application.name}:${spring.cloud.client.ipAddress}:${spring.application.instance_id:${server.port}} \ No newline at end of file