根据solidity合约生成java包装类
maven插件(https://github.com/web3j/web3j-maven-plugin
)
1:引入依赖 web3j
org.web3j
core
4.5.11
2.引入插件
org.web3j
web3j-maven-plugin
4.5.11
com.zuehlke.blockchain.model
src/main/java/generated
true
java,bin
src/main/resources
**/*.sol
src/java/generated
src/bin/generated
src/abi/generated
greeter
mortal
dep=../dependencies
3.修改好文件目录后 在项目目录执行命令 mvn web3j:generate-sources
4.命令执行后会生成对.java 与.bin 文件