摘要: 1.数组转化为List: String[] strArray= new String[]{"Tom", "Bob", "Jane"}; List strList= Arrays.asList(strArray); 2.数组转Set String[] strArray= new String[]{"T 阅读全文
posted @ 2019-06-10 20:01 一心二念 阅读(14382) 评论(0) 推荐(0) 编辑
摘要: 第一种: 1.引入POM坐标,需要同时引入通用mapper和jpa 2.将自己的mapper文件继承通用mapper的BaseMapper 3.编写JAVA BEAN配置类 第二种(推荐): 1、配置mybatis application.properties(配置文件) 2、引入依赖(spring 阅读全文
posted @ 2019-06-10 15:02 一心二念 阅读(6933) 评论(0) 推荐(0) 编辑
摘要: mybatis-plus-boot-starter和mybatis-spring-boot-starter冲突导致MapperScan失效问题还没有解决,只能不用mybatis-plus-boot-starter 1. Mybatis-generatorMyBatis Generator(MBG)是 阅读全文
posted @ 2019-06-10 14:20 一心二念 阅读(1998) 评论(0) 推荐(0) 编辑