Skip to content
Advertisement

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘messageSender’

Error while trying to publish a message from spring boot to Google cloud platform pub/sub. I was trying to publish a message to the Google Cloud Platform pub/sub messaging queue. I was getting the following errors while trying to run the application.Please help.

JavaScript

I was using only a single Java Class file.

JavaScript

Thease are my dependencies(pom.xml)

JavaScript

Please help. Thank you.

Advertisement

Answer

I solved this problem. This problem occured due to a smaller error I made in the application.properties file. Instead of spring.cloud.gcp.project-id I used spring.cloud.gcp.project.id.

Advertisement