1、利用JDBC获取列信息,硬编码生成类2、参考Hibernate等主流ORM框架http://onedear.iteye.com/blog/812199 转载于:https://www.cnblogs.com/diyunpeng/archive/2011/09/23/2185843.html