
工具
rwb0123
这个作者很懒,什么都没留下…
展开
-
自动生成实体,Dao层代码
今天来介绍下怎么用mybatis-gennerator插件自动生成mybatis所需要的dao、bean、mapper xml文件,这样我们可以节省一部分精力,把精力放在业务逻辑上。之前看过很多文章,都是借助eclipse或者IDEA等其他工具,今天讲的这个方法是,直接在命令提示符下运行。程序打包上传:http://download.youkuaiyun.com/detail/tolcf/94转载 2017-04-13 20:01:37 · 5068 阅读 · 0 评论 -
generator
最近使用到了generator生成代码。主要用来生成DO,DAO,*Mapper.xml。由于仅需要其生成一些基本的公用的sql操作行为(增删改查更一个方法),而且命名也需要自己的规范,所以修改了一些源码记录下来,用于备忘。 使用的版本为1.3.2。主要记录: 1.org/mybatis/generator/api/IntrospectedTable.Java类:calculateJa原创 2017-04-25 13:09:27 · 524 阅读 · 0 评论 -
JSONObject中optString和getString等的区别
The difference is that optString returns the empty string ("") if the key you specify doesn't exist.getString on the other hand throws a JSONException. Use getString if it's an error for the data to原创 2017-06-03 14:29:49 · 2164 阅读 · 0 评论