您的位置:首页 > 其它

Protobuf Lesson 1: compile

2016-01-23 17:51 281 查看
The first lesson I learned in protobuf compiling is:
the --java_out must be accurate.

example: project structure is maven style, the protobuf message's java-package value is "com.xxx.common.vo",

then your --java_out value should be
$project-home$\src\main\java

otherwise, the generated message bean would have compilation error (name space related, nested class cannot be resolved to a type) and you are not recommended to edit the generated java file.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: