idea设置generator自动生成代码: http://blog.csdn.net/sunny243788557/article/details/45166397 转载于:https://www.cnblogs.com/chenzeyong/p/7767943.html