spring+mybatis整合(二)
摘要:一、applicationContext.xml配置 二、META-INF/spring/mybatis-config.xml 三、注解MyBatisRepository 四、Dao类配置
阅读全文
mybatis-generator自动生成(一)
摘要:1、创建javaSE项目mybatis-generator,导入以下jar包,项目结构如图所示: 2、在类路径下添加log4j.properties文件 3、创建GeneratorSqlmap类 4、类路径下创建generatorConfig.xml文件
阅读全文