You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
spring.application.name=tmcore
server.port=8081
# Configuration for MySQL Database
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql://localhost:3306/tmcore
spring.datasource.username=${DB_USERNAME}
spring.datasource.password=${DB_PASSWORD}
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.show-sql:true
grpc.client.tmaccount.address=static://localhost:9090
grpc.client.tmaccount.negotiationType=plaintext
When I tried to run helloService.sendMessage("demo"), it shows error below:
java.lang.NullPointerException: Cannot invoke "org.springframework.grpc.sample.proto.SimpleGrpc$SimpleBlockingStub.sayHello(org.springframework.grpc.sample.proto.HelloRequest)" because "this.simpleStub" is null
Is there any configuration I've done wrong?
The text was updated successfully, but these errors were encountered:
This isn't really a gRPC specific question but about spring boot auto configuration not working. You should check for things like component base scan whether it includes the package where you are trying to use the auto-configure.
tmaccount
tmcore
tmcore application.properties
When I tried to run
helloService.sendMessage("demo")
, it shows error below:Is there any configuration I've done wrong?
The text was updated successfully, but these errors were encountered: