随笔分类 -  Junit

摘要:今天在使用hibernate注解方式标明的实体类时产生数据库表示遇到了一些问题,经过搜集一些资料,最后总结了一下,如下所示:先把我的整体的几个文件的代码贴出来吧这是hibernate.cfg.xml文件 com.mysql.jdbc.Driver jdbc:mysql://localhost:... 阅读全文
posted @ 2014-07-14 12:18 逝去的十月 阅读(365) 评论(0) 推荐(0)
摘要:Spring+Junit 读取WEB-INF下的配置文件测试环境:Spring3.0.5 + Junit4.8.1配置文件放在class目录下:ApplicationContext applicationContext = new ClassPathXmlApplicationContext("sp... 阅读全文
posted @ 2014-07-10 11:59 逝去的十月 阅读(238) 评论(0) 推荐(0)