eazybytes / microservices-with-spring-sectionwise-code Goto Github PK
View Code? Open in Web Editor NEWMicroservices With Spring, Docker, Kubernetes - Code Examples
Microservices With Spring, Docker, Kubernetes - Code Examples
Hi,
I'm using spring cloud api-gateway with SSL, when running services on host - all is working as expected.
But when running on docker - I'm having issues to connect through the api-gateway (accessing the services directly is ok).
That the error that I get when accessing a service through Swagger: Bad Request. This combination of host and port requires TLS.
What can be the reason for that?
Thanks!
[INFO] [creator] Using Java version 11.* from BP_JVM_VERSION
[INFO] [creator] BellSoft Liberica JRE 11.0.16: Contributing to layer
[INFO] [creator] Downloading from https://github.com/bell-sw/Liberica/releases/download/11.0.16+8/bellsoft-jre11.0.16+8-linux-amd64.tar.gz
[INFO] [creator] unable to invoke layer creator
[INFO] [creator] unable to get dependency jre
[INFO] [creator] unable to download https://github.com/bell-sw/Liberica/releases/download/11.0.16+8/bellsoft-jre11.0.16+8-linux-amd64.tar.gz
[INFO] [creator] unable to request https://github.com/bell-sw/Liberica/releases/download/11.0.16+8/bellsoft-jre11.0.16+8-linux-amd64.tar.gz
[INFO] [creator] Get "https://objects.githubusercontent.com/github-production-release-asset-2e65be/115621629/142e6bf7-81d2-44e7-b8e3-10b9ec7f168b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220817%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220817T063014Z&X-Amz-Expires=300&X-Amz-Signature=2820afcafd4c0673afed0864ef33f2557d541f716f4f6c6566fd5df660422f46&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=115621629&response-content-disposition=attachment%3B%20filename%3Dbellsoft-jre11.0.16%2B8-linux-amd64.tar.gz&response-content-**type=application%2Foctet-stream": x509: certificate signed by unknown authority**
[INFO] [creator] ERROR: failed to build: exit status 1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44.459 s
[INFO] Finished at: 2022-08-17T02:30:15-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.7.2:build-image (default-cli) on project cards: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.7.2:build-image failed: Builder lifecycle 'creator' failed with status code 51 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Hi,
In Section 4, Chapter 17 -> AccountsController.java fails to compile this line:
Accounts accounts = accountsRepository.findByCustomerId(customer.getCustomerId());
The error is: The method getCustomerId() is undefined for the type Customer
Please advise,
Alex
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.