• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
﹏℡幸福?
博客园    首页    新随笔    联系   管理    订阅  订阅
2014年11月22日
MyBatis Generator自动生成的配置及使用
摘要: 注意:文件名不能有中文字符,不然不能自动生成找到MyBatisGenerator.rar\MyBatisGenerator\eclipse里的features和plugins文件,把这两个文件复制到MyEclipse安装目录下dropins包里.重新打开MyEclipse选中项目右键New→Othe... 阅读全文
posted @ 2014-11-22 09:31 ﹏℡幸福? 阅读(521) 评论(0) 推荐(0)
配置MyBatis
摘要: 创建WebProject之后先把mybatis-3.2.2.zip里的mybatis-3.2.2.jar包和lib里的asm-3.3.1.jar、cglib-2.2.2.jar、commons-logging-1.1.1.jar、javassist-3.17.1-GA.jar、log4j-1.2.1... 阅读全文
posted @ 2014-11-22 09:25 ﹏℡幸福? 阅读(441) 评论(0) 推荐(0)
配置Hibernate二级缓存
摘要: 首先找到配置EHCahe二级缓存需要添加的jar包hibernate-release-4.1.9.Final→lib→optional→ehcache→下的ehcache-core-2.4.3.jar和hibernate-ehcache-4.1.9.Final.jar还有slf4j-api-1.6.... 阅读全文
posted @ 2014-11-22 08:58 ﹏℡幸福? 阅读(134) 评论(0) 推荐(0)
Hibernate反转维护
摘要: //反转维护@Testpublicvoidtest4(){Sessionses=newConfiguration().configure().buildSessionFactory().openSession();Deptdept=newDept();dept.setDname("shenpeng"... 阅读全文
posted @ 2014-11-22 08:49 ﹏℡幸福? 阅读(215) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3