cer / microservices-examples Goto Github PK
View Code? Open in Web Editor NEWExamples of microservices
License: Other
Examples of microservices
License: Other
The mavenCentral()
uses the 'https' protocols, but sometimes the https://repo1.maven.org/ does not have a valid certificate, so the
repositories {
maven {
url "http://repo1.maven.org/maven2"
}
}
would be more useful sometimes.
See http://stackoverflow.com/questions/26675814/gradle-could-not-head-https-pom-peer-not-authenticated for more details.
Thanks for doing this sample project. I have been able to pull a few items from this project.
Wondering if you had considered linking your mongo and rabbitmq containers to your webservice. I was able to setup and hoping to share what I figured out.
Basically when you link to another container new environment variables are created with ip and port information in the new container.
With this information set you can define them in the application.properties files.
spring.data.mongodb.host = ${MONGODB_PORT_27017_TCP_ADDR:127.0.0.1}
This is the repo I have this setup in for reference. Hope this helps
Quite a few changes to the compose file for version 2+.
[root@ip-172-31-40-37 spring-boot-webapp]# ./gradlew build
Downloading http://services.gradle.org/distributions/gradle-2.11-all.zip
Exception in thread "main" java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 403 for URL: http://services.gradle.org/distributions/gradle-2.11-all.zip
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:78)
at org.gradle.wrapper.Install.createDist(Install.java:47)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://services.gradle.org/distributions/gradle-2.11-all.zip
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1897)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1495)
at org.gradle.wrapper.Download.downloadInternal(Download.java:59)
at org.gradle.wrapper.Download.download(Download.java:45)
at org.gradle.wrapper.Install$1.call(Install.java:60)
at org.gradle.wrapper.Install$1.call(Install.java:47)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
... 3 more
[root@ip-172-31-40-37 spring-boot-webapp]# ^C
[root@ip-172-31-40-37 spring-boot-webapp]# gradlew.bat connectedInstrumentTest
-bash: gradlew.bat: command not found
[root@ip-172-31-40-37 spring-boot-webapp]#
example
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>3.1.1</version>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>jquery-validation</artifactId>
<version>1.11.1</version>
</dependency>
http://plainoldobjects.com/2014/05/05/building-microservices-with-spring-boot-part-2
docker-compose pull gives me the following error:
ERROR: Validation failed in file './docker-compose.yml', reason(s):
web.environment.EUREKA_INSTANCE_PREFER_IP_ADDRESS contains true, which is an invalid type, it should be a string, number, or a null
changing true to 1 fixes it.
Hi,
First of all thank you for this excellent project !!
I am trying to run the spring-boot-restful-services project on a VirtualBox using Ubuntu 14.x as the host OS . The host IP I have used is localhost and I get this error with I run the register-user.sh script I run into this issue with MongoDB timeout .. Any ideas what could be the reason
[nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.DataAccessResourceFailureException: Timed out while waiting to connect after 10000 ms; nested exception is com.mongodb.MongoTimeoutException: Timed out while waiting to connect after 10000 ms] with root cause
Thanks,
Tarun
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.