Initial checkin
This commit is contained in:
Коммит
0f00ee87e4
|
@ -0,0 +1 @@
|
|||
ingredients.threshold: 1000
|
|
@ -0,0 +1,56 @@
|
|||
info:
|
||||
description: Spring Cloud Samples
|
||||
url: https://github.com/spring-cloud-samples
|
||||
eureka:
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://localhost:8761/eureka/
|
||||
|
||||
---
|
||||
spring:
|
||||
profiles: cloud
|
||||
cloud:
|
||||
config:
|
||||
uri: ${vcap.services.${PREFIX:}configserver.credentials.uri:http://user:password@${PREFIX:}configserver.${application.domain:cfapps.io}}
|
||||
oauth2:
|
||||
client:
|
||||
tokenUri: ${vcap.services.${PREFIX:}sso.credentials.tokenUri:}
|
||||
authorizationUri: ${vcap.services.${PREFIX:}sso.credentials.authorizationUri:}
|
||||
clientId: ${vcap.services.${PREFIX:}sso.credentials.clientId:}
|
||||
clientSecret: ${vcap.services.${PREFIX:}sso.credentials.clientSecret:}
|
||||
resource:
|
||||
tokenInfoUri: ${vcap.services.${OAUTH2_RESOURCE_SERVICEID:${oauth2.resource.serviceId:sso}}.credentials.tokenInfoUri:}
|
||||
serviceId: ${PREFIX:}resource
|
||||
application:
|
||||
domain: ${APPLICATION_DOMAIN:cfapps.io}
|
||||
endpoints:
|
||||
restart: enabled
|
||||
eureka:
|
||||
password: password
|
||||
instance:
|
||||
hostname: ${vcap.application.uris[0]:localhost}
|
||||
nonSecurePort: 80
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: ${vcap.services.${PREFIX:}eureka.credentials.uri:http://user:${eureka.password:}@${PREFIX:}eureka.${application.domain:cfapps.io}}/eureka/
|
||||
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 60000
|
||||
ribbon:
|
||||
ConnectTimeout: 3000
|
||||
ReadTimeout: 60000
|
||||
|
||||
---
|
||||
spring:
|
||||
profiles: docker
|
||||
cloud:
|
||||
config:
|
||||
uri: http://${CONFIGSERVER_1_PORT_8888_TCP_ADDR:localhost}:8888
|
||||
endpoints:
|
||||
restart: enabled
|
||||
eureka:
|
||||
instance:
|
||||
nonSecurePort: 80
|
||||
preferIpAddress: true
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://${EUREKA_1_PORT_8761_TCP_ADDR:localhost}:8761/eureka/
|
||||
|
|
@ -0,0 +1 @@
|
|||
foo: bar2
|
|
@ -0,0 +1,120 @@
|
|||
<?xml version="1.0"?>
|
||||
<catalog>
|
||||
<book id="bk101">
|
||||
<author>Gambardella, Matthew</author>
|
||||
<title>XML Developer's Guide</title>
|
||||
<genre>Computer</genre>
|
||||
<price>44.95</price>
|
||||
<publish_date>2000-10-01</publish_date>
|
||||
<description>An in-depth look at creating applications
|
||||
with XML.</description>
|
||||
</book>
|
||||
<book id="bk102">
|
||||
<author>Ralls, Kim</author>
|
||||
<title>Midnight Rain</title>
|
||||
<genre>Fantasy</genre>
|
||||
<price>5.95</price>
|
||||
<publish_date>2000-12-16</publish_date>
|
||||
<description>A former architect battles corporate zombies,
|
||||
an evil sorceress, and her own childhood to become queen
|
||||
of the world.</description>
|
||||
</book>
|
||||
<book id="bk103">
|
||||
<author>Corets, Eva</author>
|
||||
<title>Maeve Ascendant</title>
|
||||
<genre>Fantasy</genre>
|
||||
<price>5.95</price>
|
||||
<publish_date>2000-11-17</publish_date>
|
||||
<description>After the collapse of a nanotechnology
|
||||
society in England, the young survivors lay the
|
||||
foundation for a new society.</description>
|
||||
</book>
|
||||
<book id="bk104">
|
||||
<author>Corets, Eva</author>
|
||||
<title>Oberon's Legacy</title>
|
||||
<genre>Fantasy</genre>
|
||||
<price>5.95</price>
|
||||
<publish_date>2001-03-10</publish_date>
|
||||
<description>In post-apocalypse England, the mysterious
|
||||
agent known only as Oberon helps to create a new life
|
||||
for the inhabitants of London. Sequel to Maeve
|
||||
Ascendant.</description>
|
||||
</book>
|
||||
<book id="bk105">
|
||||
<author>Corets, Eva</author>
|
||||
<title>The Sundered Grail</title>
|
||||
<genre>Fantasy</genre>
|
||||
<price>5.95</price>
|
||||
<publish_date>2001-09-10</publish_date>
|
||||
<description>The two daughters of Maeve, half-sisters,
|
||||
battle one another for control of England. Sequel to
|
||||
Oberon's Legacy.</description>
|
||||
</book>
|
||||
<book id="bk106">
|
||||
<author>Randall, Cynthia</author>
|
||||
<title>Lover Birds</title>
|
||||
<genre>Romance</genre>
|
||||
<price>4.95</price>
|
||||
<publish_date>2000-09-02</publish_date>
|
||||
<description>When Carla meets Paul at an ornithology
|
||||
conference, tempers fly as feathers get ruffled.</description>
|
||||
</book>
|
||||
<book id="bk107">
|
||||
<author>Thurman, Paula</author>
|
||||
<title>Splish Splash</title>
|
||||
<genre>Romance</genre>
|
||||
<price>4.95</price>
|
||||
<publish_date>2000-11-02</publish_date>
|
||||
<description>A deep sea diver finds true love twenty
|
||||
thousand leagues beneath the sea.</description>
|
||||
</book>
|
||||
<book id="bk108">
|
||||
<author>Knorr, Stefan</author>
|
||||
<title>Creepy Crawlies</title>
|
||||
<genre>Horror</genre>
|
||||
<price>4.95</price>
|
||||
<publish_date>2000-12-06</publish_date>
|
||||
<description>An anthology of horror stories about roaches,
|
||||
centipedes, scorpions and other insects.</description>
|
||||
</book>
|
||||
<book id="bk109">
|
||||
<author>Kress, Peter</author>
|
||||
<title>Paradox Lost</title>
|
||||
<genre>Science Fiction</genre>
|
||||
<price>6.95</price>
|
||||
<publish_date>2000-11-02</publish_date>
|
||||
<description>After an inadvertant trip through a Heisenberg
|
||||
Uncertainty Device, James Salway discovers the problems
|
||||
of being quantum.</description>
|
||||
</book>
|
||||
<book id="bk110">
|
||||
<author>O'Brien, Tim</author>
|
||||
<title>Microsoft .NET: The Programming Bible</title>
|
||||
<genre>Computer</genre>
|
||||
<price>36.95</price>
|
||||
<publish_date>2000-12-09</publish_date>
|
||||
<description>Microsoft's .NET initiative is explored in
|
||||
detail in this deep programmer's reference.</description>
|
||||
</book>
|
||||
<book id="bk111">
|
||||
<author>O'Brien, Tim</author>
|
||||
<title>MSXML3: A Comprehensive Guide</title>
|
||||
<genre>Computer</genre>
|
||||
<price>36.95</price>
|
||||
<publish_date>2000-12-01</publish_date>
|
||||
<description>The Microsoft MSXML3 parser is covered in
|
||||
detail, with attention to XML DOM interfaces, XSLT processing,
|
||||
SAX and more.</description>
|
||||
</book>
|
||||
<book id="bk112">
|
||||
<author>Galos, Mike</author>
|
||||
<title>Visual Studio 7: A Comprehensive Guide</title>
|
||||
<genre>Computer</genre>
|
||||
<price>49.95</price>
|
||||
<publish_date>2001-04-16</publish_date>
|
||||
<description>Microsoft Visual Studio 7 is explored in depth,
|
||||
looking at how Visual Basic, Visual C++, C#, and ASP+ are
|
||||
integrated into a comprehensive development
|
||||
environment.</description>
|
||||
</book>
|
||||
</catalog>
|
|
@ -0,0 +1,8 @@
|
|||
info.description: configserver
|
||||
---
|
||||
spring:
|
||||
profiles: cloud
|
||||
service:
|
||||
definition:
|
||||
metadata:
|
||||
uri: http://${spring.application.name}.${application.domain:cfapps.io}
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
spring:
|
||||
profiles: cloudpeers
|
||||
eureka:
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: ${vcap.services.${PREFIX:}othereureka.credentials.uri:http://${PREFIX:}othereureka.${application.domain:cfapps.io}}/eureka/
|
||||
|
||||
---
|
||||
spring:
|
||||
profiles: docker
|
||||
eureka:
|
||||
client:
|
||||
serviceUrl:
|
||||
defaultZone: http://localhost:8761/eureka/
|
|
@ -0,0 +1 @@
|
|||
bar: spam
|
|
@ -0,0 +1,2 @@
|
|||
foo: barcelona
|
||||
democonfigclient.message: hello spring io
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
spring:
|
||||
profiles: cloud
|
||||
data:
|
||||
mongodb:
|
||||
uri: ${vcap.services.${PREFIX:}mongodb.credentials.uri}
|
||||
demo:
|
||||
baseUri: http://${eureka.instance.hostname}
|
|
@ -0,0 +1 @@
|
|||
bar: spam
|
|
@ -0,0 +1 @@
|
|||
foo: live from phoenix again
|
|
@ -0,0 +1,2 @@
|
|||
foo: bar2
|
||||
logging.level.org.springframework.web: DEBUG
|
|
@ -0,0 +1,7 @@
|
|||
foo: '{cipher}{key:test}AQCST0WVyBi2M5w1KWyzV6DNGXKBgk5Yd9QnbVv4rSj+7HhgsJh5gQTI/CZvV/wHZqYtYrGxJJ3TCdXc/gBP4dbkBDdOEJOq+u7UUqNTOd2693FgOp5CeoMREUOmLp9r0CtF4TZLdjZfs4kxiBPVPd5fEaz9ULIgtgLSdS2oUEg6UXr3LA/M7P8YchkEPYUyf+VxGUDe587XPffHMU4zmvhmoTSen9BAc5BuGK+FZ3GFe12MDEPkNQ0uY002FitEfmgON65Xh3eJtNxCbUXJTj+oDc0icePqOgnG0gc17MymZdcJCIhP+cCiS6LzS57vhP+xGZvBBBHnw00ZVzHX73UfKkC9GLsnEVVQO5Xf2COR/rGZqvLJNKgvSHcbf03PrhQ='
|
||||
---
|
||||
spring:
|
||||
profiles: cloud
|
||||
data:
|
||||
mongodb:
|
||||
uri: ${vcap.services.${PREFIX:}mongodb.credentials.uri}
|
|
@ -0,0 +1,237 @@
|
|||
[
|
||||
{
|
||||
"_id": "56f051673a6f1037be9a3ccb",
|
||||
"index": 0,
|
||||
"guid": "2b403b4b-8b4f-4bf4-8fc0-c957e9c92596",
|
||||
"isActive": true,
|
||||
"balance": "$2,210.39",
|
||||
"picture": "http://placehold.it/32x32",
|
||||
"age": 25,
|
||||
"eyeColor": "blue",
|
||||
"name": {
|
||||
"first": "Audra",
|
||||
"last": "Mendez"
|
||||
},
|
||||
"company": "NEXGENE",
|
||||
"email": "audra.mendez@nexgene.io",
|
||||
"phone": "+1 (812) 461-2870",
|
||||
"address": "715 Ebony Court, Logan, New Hampshire, 9176",
|
||||
"about": "Sit deserunt nulla nulla incididunt et dolor anim eiusmod exercitation. Dolore dolor elit laborum aliquip esse amet id. Est ipsum sit voluptate duis cillum ut tempor ipsum pariatur adipisicing sunt. Consequat officia ut tempor id et reprehenderit et veniam ullamco anim qui sint aliquip tempor. Cillum laborum veniam ullamco enim consectetur veniam quis dolor nostrud officia.",
|
||||
"registered": "Tuesday, February 18, 2014 6:54 PM",
|
||||
"latitude": "-54.035224",
|
||||
"longitude": "-18.578621",
|
||||
"tags": [
|
||||
7,
|
||||
"irure"
|
||||
],
|
||||
"range": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9
|
||||
],
|
||||
"friends": [
|
||||
3,
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Hillary Hutchinson"
|
||||
}
|
||||
],
|
||||
"greeting": "Hello, Audra! You have 9 unread messages.",
|
||||
"favoriteFruit": "apple"
|
||||
},
|
||||
{
|
||||
"_id": "56f0516768d43b3ea3b7561f",
|
||||
"index": 1,
|
||||
"guid": "cbc8e72f-511b-406b-b3c8-d44a5ea78f2f",
|
||||
"isActive": true,
|
||||
"balance": "$3,096.58",
|
||||
"picture": "http://placehold.it/32x32",
|
||||
"age": 26,
|
||||
"eyeColor": "blue",
|
||||
"name": {
|
||||
"first": "Merle",
|
||||
"last": "Wooten"
|
||||
},
|
||||
"company": "EDECINE",
|
||||
"email": "merle.wooten@edecine.ca",
|
||||
"phone": "+1 (842) 447-2285",
|
||||
"address": "142 Hendrix Street, Bartley, Arizona, 5777",
|
||||
"about": "Ea sunt veniam labore qui ad. Sint nisi aliqua laborum dolor do voluptate cupidatat eu. Enim deserunt anim excepteur enim labore et nostrud elit consectetur excepteur nostrud aliquip dolor adipisicing. Irure aliquip incididunt proident culpa.",
|
||||
"registered": "Thursday, April 10, 2014 4:58 AM",
|
||||
"latitude": "-8.395754",
|
||||
"longitude": "75.771414",
|
||||
"tags": [
|
||||
7,
|
||||
"irure"
|
||||
],
|
||||
"range": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9
|
||||
],
|
||||
"friends": [
|
||||
3,
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Hillary Hutchinson"
|
||||
}
|
||||
],
|
||||
"greeting": "Hello, Merle! You have 5 unread messages.",
|
||||
"favoriteFruit": "strawberry"
|
||||
},
|
||||
{
|
||||
"_id": "56f05167d299eab579202f1e",
|
||||
"index": 2,
|
||||
"guid": "46f24b5b-f8e3-486b-8b3a-0b0784f513d9",
|
||||
"isActive": true,
|
||||
"balance": "$3,437.48",
|
||||
"picture": "http://placehold.it/32x32",
|
||||
"age": 39,
|
||||
"eyeColor": "green",
|
||||
"name": {
|
||||
"first": "Lupe",
|
||||
"last": "Lewis"
|
||||
},
|
||||
"company": "HOMELUX",
|
||||
"email": "lupe.lewis@homelux.me",
|
||||
"phone": "+1 (877) 548-3554",
|
||||
"address": "146 Terrace Place, Derwood, Pennsylvania, 2599",
|
||||
"about": "Aute sint id aliqua ipsum consectetur exercitation nisi. Minim ex laborum eu do. Sunt laborum enim deserunt culpa aliqua eu consectetur.",
|
||||
"registered": "Sunday, April 12, 2015 2:47 PM",
|
||||
"latitude": "-45.907896",
|
||||
"longitude": "-128.202572",
|
||||
"tags": [
|
||||
7,
|
||||
"irure"
|
||||
],
|
||||
"range": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9
|
||||
],
|
||||
"friends": [
|
||||
3,
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Hillary Hutchinson"
|
||||
}
|
||||
],
|
||||
"greeting": "Hello, Lupe! You have 5 unread messages.",
|
||||
"favoriteFruit": "strawberry"
|
||||
},
|
||||
{
|
||||
"_id": "56f05167aaf3df75213406b1",
|
||||
"index": 3,
|
||||
"guid": "c9f2570b-76c5-4326-809e-fb7797e0d1cc",
|
||||
"isActive": false,
|
||||
"balance": "$1,543.14",
|
||||
"picture": "http://placehold.it/32x32",
|
||||
"age": 34,
|
||||
"eyeColor": "blue",
|
||||
"name": {
|
||||
"first": "Swanson",
|
||||
"last": "Mccarthy"
|
||||
},
|
||||
"company": "MITROC",
|
||||
"email": "swanson.mccarthy@mitroc.co.uk",
|
||||
"phone": "+1 (954) 466-3219",
|
||||
"address": "420 Merit Court, Frystown, Oregon, 4940",
|
||||
"about": "Culpa incididunt adipisicing nostrud velit in veniam officia. Consequat voluptate mollit tempor eu velit aliqua commodo nulla nisi irure. Velit non incididunt amet proident deserunt officia velit cillum. Non exercitation veniam commodo deserunt Lorem velit incididunt ullamco dolor eu est consectetur. Commodo aliqua in minim minim eu. Labore sunt non aute tempor elit ut tempor deserunt.",
|
||||
"registered": "Thursday, November 19, 2015 5:44 PM",
|
||||
"latitude": "29.438056",
|
||||
"longitude": "-5.197729",
|
||||
"tags": [
|
||||
7,
|
||||
"irure"
|
||||
],
|
||||
"range": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9
|
||||
],
|
||||
"friends": [
|
||||
3,
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Hillary Hutchinson"
|
||||
}
|
||||
],
|
||||
"greeting": "Hello, Swanson! You have 10 unread messages.",
|
||||
"favoriteFruit": "banana"
|
||||
},
|
||||
{
|
||||
"_id": "56f051675b6417531450dd6f",
|
||||
"index": 4,
|
||||
"guid": "40b284d8-00a3-4778-8215-4781e3ed5df3",
|
||||
"isActive": true,
|
||||
"balance": "$2,520.39",
|
||||
"picture": "http://placehold.it/32x32",
|
||||
"age": 24,
|
||||
"eyeColor": "blue",
|
||||
"name": {
|
||||
"first": "Casey",
|
||||
"last": "Dotson"
|
||||
},
|
||||
"company": "IMKAN",
|
||||
"email": "casey.dotson@imkan.biz",
|
||||
"phone": "+1 (853) 506-2464",
|
||||
"address": "881 Sedgwick Street, Goodville, Hawaii, 7857",
|
||||
"about": "Officia exercitation aliqua anim deserunt sint. Elit incididunt laboris deserunt dolor sit veniam Lorem. Laboris anim non ad sint pariatur veniam cupidatat. Enim in quis reprehenderit ex amet laboris ea tempor. Labore laboris voluptate ipsum tempor sunt esse velit ex nisi. Minim sit pariatur Lorem elit occaecat.",
|
||||
"registered": "Saturday, August 15, 2015 8:30 PM",
|
||||
"latitude": "-58.150569",
|
||||
"longitude": "164.512045",
|
||||
"tags": [
|
||||
7,
|
||||
"irure"
|
||||
],
|
||||
"range": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9
|
||||
],
|
||||
"friends": [
|
||||
3,
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Hillary Hutchinson"
|
||||
}
|
||||
],
|
||||
"greeting": "Hello, Casey! You have 10 unread messages.",
|
||||
"favoriteFruit": "apple"
|
||||
}
|
||||
]
|
|
@ -0,0 +1,3 @@
|
|||
zuul.route.samplebackendservice=/hello
|
||||
zuul.route.samplefrontendservice=/
|
||||
zuul.route.hystrixdashboard=/hystrix-dashboard
|
Загрузка…
Ссылка в новой задаче