Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
本项目基于fisco-bcos-java-sdk3.4.0开发,代码结构和源程序差异较大,使用方法如下:
1.新建sprignboot应用
2.引入maven依赖
com.gitee.zhangyutong
bcos-springboot-starter
3.0.1-Beta
3.将相关证书复制到conf目录下
4.新建目录,将编译好的合约java代码防到新目录里
5.在启动类上加上@EnableScan(packages = {"java合约包名"})
6.新建controller, 拿到客户端,FiscoClient fiscoClient = FManager.getFiscoClient();可以调用fiscoClient 的基本方法,合约在resource目录下