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.
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.
相关文章推荐
- 如何建立自己的技术壁垒
- python fabric模块
- 通讯录实例
- hdu1128 Self Numbers
- leetCode 242. Valid Anagram
- Php发送post请求方法
- iis7.5加fck解析漏洞后台拿shell
- echo,die(),print(),print_r(),var_dump()的区别
- Mysql数据库字符集问题
- 作为一个前端,可以如何机智地弄坏一台电脑?
- 彻底解决mysql中文乱码的办法
- php 上传大文件主要涉及配置upload_max_filesize和post_max_size两个选项。
- PHP最全防止sql注入方法
- Mysql 漏洞利用(越权读取文件,实战怎么从低权限拿到root密码)[转]
- php包含那点事情[WOOYUN]
- 掌握下面常用函数,学php不再难
- 解决ThinkPHP中开启调试模式无法加载模块的问题。
- Spring 3.x jar 包详解 与 依赖关系
- 1.2.1 Milking Cows
- Php发送post请求方法