发表于: 2016-08-16 00:06:22
1 2276
今天完成的事情:
1.将spring和mybatis整合,整合的方向主要是通过spring配置文件自动生成代理对象,使用sqlSessionFactory创建sqlSession;由spring来管理持久层的mapper
明天计划完成的事情:
2.创建Maven WEB工程;使用SpringMVC完成REST接口。
问题:
1.在整合的过程中出现以下错误:
2016-08-15 21:52:59 [ main:10 ] - [ INFO ] Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@73035e27: startup date [Mon Aug 15 21:52:59 GMT+08:00 2016]; root of context hierarchy
2016-08-15 21:52:59 [ main:63 ] - [ INFO ] Loading XML bean definitions from class path resource [spring/applicationContext.xml]
2016-08-15 21:53:00 [ main:340 ] - [ INFO ] Loading properties file from class path resource [db.properties]
这里的applicationContext.xml和db.proerties分别是spring核心配置文件和mysql数据库连接参数属性文件。
评论