2019年7月3日

SpringBoot_Mybatis MyBatisPlus

摘要: 一.SpringBoot中使用Mybatis springBoot中使用mybatis跟以前spring中使用方法一样. 1.mybatis配置: 2.配置mapper接口. 3.配置mapper文件. 在resources文件夹下创建mapper包 在mapper包中创建mapper.xml来写s 阅读全文

posted @ 2019-07-03 11:37 周昌洋 阅读(180) 评论(0) 推荐(0) 编辑

springBoot_JPA和lombok

摘要: 一.JPA 特点:JPA可以根据方法名自动匹配sql语句. JPA是一个标准 Hibernate是JPA的一个实现,宗旨是尽量少写sql语句. 使用JPA 1.application.properties配置: 在springBoot工程下的application.properties配置文件中的相 阅读全文

posted @ 2019-07-03 10:58 周昌洋 阅读(1618) 评论(0) 推荐(0) 编辑

导航