摘要: SpringBoot整合Redis步骤: 1.在pom.xml添加依赖 <!--springboot整合redis相关依赖引入--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-st 阅读全文
posted @ 2019-11-06 20:50 阿怪阿 阅读(198) 评论(0) 推荐(0)
摘要: 1.在pom.xml中添加依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.7.0</version> </dependency> <depen 阅读全文
posted @ 2019-11-06 20:49 阿怪阿 阅读(351) 评论(3) 推荐(0)
摘要: 1.在原有的依赖中,添加MyBatis的依赖 <!--SpringBoot整合MyBatis--><dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</arti 阅读全文
posted @ 2019-11-06 20:49 阿怪阿 阅读(211) 评论(0) 推荐(0)
摘要: SpringBoot整合Spring Data JPA,并在页面展示 1.添加依赖:pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi= 阅读全文
posted @ 2019-11-06 20:48 阿怪阿 阅读(178) 评论(0) 推荐(0)
摘要: SpringBoot构建RESTful API 一、RESTful介绍 RESTful是一种软件架构风格! RESTful架构风格规定,数据的元操作,即CRUD(create, read, update和delete,即数据的增删查改)操作,分别对应于HTTP方法: GET用来获取资源, POST用 阅读全文
posted @ 2019-11-06 19:57 阿怪阿 阅读(193) 评论(0) 推荐(0)
摘要: SpringBoot属性配置 创建Spring Boot项目时,会默认生成一个全局配置文件application.properties(可以修改后缀为.yml),在src/main/resources目录下或者类路径的/config下。 我们可以通过修改该配置文件来对一些默认配置的配置值进行修改。 阅读全文
posted @ 2019-11-06 19:39 阿怪阿 阅读(1158) 评论(0) 推荐(0)