配置protobuf插件

protoc块中，要指定的是protobuf的编译器路径。这个路径可以是本地的一个路径，也可以是插件源中的一个模板。

$projectDir/src/generated/main/java/path/to/package/ 而gPRC的代码就放在$projectDir/src/generated/main/grpc/path/to/package/

其他的知识

• An asterisk (‘*’) matches zero or more characters, up to the occurrence of a ‘/’ character (which serves as a path separator). A string, such as “/abcd/docs/index.html”, would not match successfully against the pattern ‘/*/*.index.html’. The first asterisk matches up to the first path separator only, resulting in the “abcd” string. A successful matching pattern would be ‘/*/*/*.html’.

• A string containing two asterisks (‘**’) matches zero or more characters. This could include the path separator ‘/’. In this case, “/abcd/docs/index.html” would successfully match the ‘/**/*.html’ pattern. The double asterisk, including the path separator, would match the “abcd/docs” string.