摘要:
1.配置如图 文件为yml 1 mybatis: 2 mapper-locations: classpath:com/springboot/transaction/mapper/*.xml 3 configuration: 4 log-impl: org.apache.ibatis.logging. 阅读全文
摘要:
一.搭建环境 采用IDE自动建立项目方式 然后,next next,配置导入依赖包 项目就生成了,在项目下导入配置文件GeneratorMapper.xml(项目结构如图所示) 配置文档,建立数据库和数据库连接 1 <?xml version="1.0" encoding="UTF-8"?> <!D 阅读全文
摘要:
maven有和多依赖包,每次搭建都很麻烦,其实IDE ,有个小技巧,就是如图所示,你给需要的技术,加入进去,自动就会生成包和相关依赖,根本无需自己配置 阅读全文