12 2018 档案

springboot整合mybatis(使用MyBatis Generator)
摘要:引入依赖 使用MyBatis Generator 添加Maven插件 这里需要加上mysql驱动的依赖,我第一次没有加,然后自动生成就一直报错。 添加配置文件generatorConfig.xml 这里注意:在上面pom.xml中配置的mybatis-generator-maven-plugin插件 阅读全文

posted @ 2018-12-12 16:08 ゝ素念。 阅读(478) 评论(0) 推荐(0)

springboot整合JPA(简单整理,待续---)
摘要:整合步骤 引入依赖: 配置数据库连接 编写与表对应的实体类 编写业务过程(controller,service,repository) repository: service: controller: 简单测试 JPA接口 接口间关系 简单测试 主要三个接口用法都相似,这里主要用JpaReposit 阅读全文

posted @ 2018-12-10 18:15 ゝ素念。 阅读(275) 评论(0) 推荐(0)

springboot整合redis(简单整理)
摘要:Redis安装与开启 我这里是在windows上练习,所以这里的安装是指在windows上的安装,操作非常简单,点击https://github.com/MicrosoftArchive/redis/releases网址,直接点击下载解压就安装成功。开启也很简单: 1.打开cmd,进入安装目录,输入 阅读全文

posted @ 2018-12-04 18:41 ゝ素念。 阅读(392) 评论(0) 推荐(0)