wendev / spring-boot-istio-demo Goto Github PK
View Code? Open in Web Editor NEW使用Spring Boot+gRPC构建微服务并部署到Istio的示例项目。
使用Spring Boot+gRPC构建微服务并部署到Istio的示例项目。
编译环境:jdk8、已下载protoc-3.20.1-win64并修改了istio-api里protoc配置
编译报错信息:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project spring-boot-istio-api: Compilation failure: Compilation failure:
[ERROR] /D:/workspace/workspace_github/spring-boot-istio-demo/spring-boot-istio-api/src/main/java/site/wendev/spring/boot/istio/client/api/HelloWorldService.java:[52,9] 找不到符号
[ERROR] 符号: 类 UnusedPrivateParameter
[ERROR] 位置: 类 site.wendev.spring.boot.istio.client.api.HelloWorldService.HelloRequest
[ERROR] /D:/workspace/workspace_github/spring-boot-istio-demo/spring-boot-istio-api/src/main/java/site/wendev/spring/boot/istio/client/api/HelloWorldService.java:[618,9] 找不到符号
[ERROR] 符号: 类 UnusedPrivateParameter
[ERROR] 位置: 类 site.wendev.spring.boot.istio.client.api.HelloWorldService.HelloResponse
[ERROR] /D:/workspace/workspace_github/spring-boot-istio-demo/spring-boot-istio-api/target/generated-sources/protobuf/java/site/wendev/spring/boot/istio/api/HelloWorldService.java:[52,9] 找不到符号
[ERROR] 符号: 类 UnusedPrivateParameter
[ERROR] 位置: 类 site.wendev.spring.boot.istio.api.HelloWorldService.HelloRequest
[ERROR] /D:/workspace/workspace_github/spring-boot-istio-demo/spring-boot-istio-api/target/generated-sources/protobuf/java/site/wendev/spring/boot/istio/api/HelloWorldService.java:[622,9] 找不到符号
[ERROR] 符号: 类 UnusedPrivateParameter
[ERROR] 位置: 类 site.wendev.spring.boot.istio.api.HelloWorldService.HelloResponse
[ERROR] /D:/workspace/workspace_github/spring-boot-istio-demo/spring-boot-istio-api/src/main/java/site/wendev/spring/boot/istio/client/api/HelloWorldService.java:[49,5] 方法不会覆盖或实现超类型的方法
[ERROR] /D:/workspace/workspace_github/spring-boot-istio-demo/spring-boot-istio-api/src/main/java/site/wendev/spring/boot/istio/client/api/HelloWorldService.java:[615,5] 方法不会覆盖或实现 超类型的方法
咨询一下,还需要配置其他东西吗?
服务发现呢
我这边clone您的代码后 通过protobuf:compile生成代码 报
Caused by: java.io.IOException: Cannot run program "/Users/jiangwen/tools/protoc-3.11.3/bin/protoc": error=2, No such file or directory
/Users/jiangwen/tools/protoc-3.11.3/bin/protoc
其他的要么是使用哪个grpc-spring-boot-starter要么就是根本没写完,乱写一通的,这里点草demo大师。给楼主点个赞
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.