spring-cloud-gcp | Integration for Google Cloud Platform APIs with Spring | Build Tool library
kandi X-RAY | spring-cloud-gcp Summary
kandi X-RAY | spring-cloud-gcp Summary
If you’re a Maven user, add our BOM to your pom.xml section. This will allow you to not specify versions for any of the Maven dependencies and instead delegate versioning to the BOM.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of spring-cloud-gcp
spring-cloud-gcp Key Features
spring-cloud-gcp Examples and Code Snippets
Community Discussions
Trending Discussions on spring-cloud-gcp
QUESTION
Can someone explain how to organize the relationship between objects using Spring Boot and Firestore?
I am using spring-cloud-gcp-starter-data-firestore and I have two objects that must be located in different collections:
...ANSWER
Answered 2022-Apr-01 at 10:14As suggested by @Frank van Puffelen, Data modeling is highly specific on the use-cases you want to implement. Unless you have a specific use-case in mind, Recommend watching the excellent video series 1
QUESTION
I am trying to publish a message to Google Cloud PubSub using the library:
implementation "com.google.cloud:spring-cloud-gcp-starter-pubsub:2.0.0"
.
But, I am getting the below exception:
com.google.cloud.spring.pubsub.support.converter.PubSubMessageConversionException: Unable to convert payload of type com.logistics.domain.events.items.FOItemsReturnedTrackingUpdate to byte[] for sending to Pub/Sub.
Here is the full stack trace:
...ANSWER
Answered 2022-Mar-30 at 06:33Looking at the stack trace, SimplePubSubMessageConverter
is choking on the Object being published. Looking at the doc for that class:
... maps payloads of type byte[], ByteString, ByteBuffer, and String to Pub/Sub messages
Change:
QUESTION
I installed PubSub dependency in my project.
...ANSWER
Answered 2022-Mar-28 at 23:02Set the projectId using gcloud-cli
QUESTION
Trying to build spring-cloud-gcp from https://github.com/GoogleCloudPlatform/spring-cloud-gcp
- Many failed compile/install attempts due to failed tests (unit and checkstyle) - decided to just disable and/or not fail due to tests - great, that worked, entire build (all sub projects) compiled
- Wanted to deploy the spring-cloud-gcp-data-firestore-sample (pom is below) to Cloud run, so changed the parent reference in the pom (as suggested/documented in the pom).
- Now can't compile/install spring-cloud-gcp-data-firestore-sample and get this error "**Non-resolvable import POM: com.google.cloud:spring-cloud-gcp-dependencies:pom:2.3.12.RELEASE was not found in https://repo.maven.apache.org/maven2**"
I've tried:
- Adding additional spring maven repos to the pom (see pom below) - no luck, and based on the error message maven doesn't even seem to be checking the added repo's
- referencing/using different versions of the spring-boot-starter-parent - no luck, nothing changed in the error
- mvn -U clean compile - no luck
Anyone got any ideas? Any suggestions greatly appreciated.
...ANSWER
Answered 2022-Mar-24 at 20:44You are inheriting version for com.google.cloud:spring-cloud-gcp-dependencies
from project.version, which is 2.3.12.RELEASE in your case.
QUESTION
I am unable to get value from secret manager.
...ANSWER
Answered 2022-Mar-21 at 10:26Deployment and runtime are 2 different things. At deployment, user must have the permission to deploy a new service. You have 3 roles that you can find in the documentation
At runtime, by default, the App Engine default service account is used. And, as you fill it, it's not a good practice because:
- The default role is Editor, that grant the service account too much permissions
- If you have 2 different services, both have the same permissions because they use the same identity (service account)
That's why, they have finally release a great feature: user managed service account
You simply have to set the service account email in the app.yaml
file, and that's all. You have a dedicated service account for your App Engine service.
Now you have the identity that you want at runtime. At runtime, you want to get a secret. So, you must grant the runtime identity to be able to access the secret.
HOWEVER, because you already have a specific and dedicated identity for your App Engine service, loading a service account key file from secret manager makes no sense! Use directly the runtime identity!
QUESTION
Spring Boot (2.5.9) has problem to access password from the GCP Secret Manager using spring-cloud-gcp-starter-secretmanager
ver 2.0.8 throwing error
ANSWER
Answered 2022-Feb-22 at 18:42The problem is that most likely, Feign autoconfiguration happens early on, before GcpSecretManagerEnvironmentPostProcessor
had a chance to run and introduce ByteString
converters.
Basically, the solution that works is to implement a Custom Converter which implements the Generic Conversion Service and register the Converter in the main method before calling SpringApplication.run
.
QUESTION
I am following this article ,for submit a job to an existing Dataproc cluster via a Dataproc API
For the following line of code :
...ANSWER
Answered 2022-Jan-14 at 19:22The method com.google.api.gax.core.GoogleCredentialsProvider$Builder com.google.api.gax.core.GoogleCredentialsProvider$Builder.setUseJwtAccessWithScope(boolean)
was introduced in com.google.api:gax
in version 2.3.0.
Can you
run
mvn dependency:tree
and confirm that your version ofcom.google.api:gax
is above version 2.3.0?upgrade all Google libraries to the latest version?
Here is a similar issue found on the internet.
QUESTION
Hi I´m getting a covnverter not found error when I'm trying openfeign with a custom interceptor. In the following sections I will detail what I have and what I did.
Environment: spring-boot 2.2.5.RELEASE and 2.2.6.RELEASE
Dependencies for google secret manager and openfeign
...ANSWER
Answered 2022-Jan-02 at 22:16I fell into a similar situation recently and after pulling my hair for a long time and debugging, this is how I could make it work. First of all, create a generic converter. This code is in Kotlin:
QUESTION
Sorry, I'm not english native.
I connected with google log.When I started for spring boot,the program is died.Because Too many logs print out. This is my log and error.
...ANSWER
Answered 2021-Dec-31 at 05:44I solved that through easy way. I only added this code in logback.xml.That is I changed log level of io.grpc.netty.shaded.io.grpc.netty to debug from info.
QUESTION
I'm trying to implement Spring Cloud Pub/Sub, I followed the guide but how to take the exception low, this makes it start to consume a high level of processing, I researched a lot and they say to put the parameter awaitTerminated, but I couldn't find how to define this parameter.
Versions:
...ANSWER
Answered 2021-Dec-22 at 16:02I solved the problem making it as simple as possible, I ended up deleting the Bean DefaultPublisherFactory and solved the problem.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spring-cloud-gcp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page