摘要:
SpringBoot整合mybatis及注意事项 主要步骤 添加依赖 mybatis 在配置文件中配置数据源信息 编写pojo mapper接口 mapeer映射文件 手动配置mybatis的包扫描 在主启动类添加@MapperScan 1:导入依赖 <dependency> <groupId> 阅读全文
posted @ 2019-11-05 22:56
Rex-小王紫
阅读(129)
评论(0)
推荐(0)
摘要:
SpringBoot整合junit 主要分为4步 添加依赖 创建测试类 在测试类上添加注解 在测试类注入测试对象 1:导入依赖包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-star 阅读全文
posted @ 2019-11-05 22:55
Rex-小王紫
阅读(190)
评论(0)
推荐(0)
摘要:
SpringBoot之RESTful风格 1、RESTful介绍 RESTful是一种软件架构风格,一种时尚! RESTful架构风格规定,数据的元操作,即CRUD(create, read, update和delete,即数据的增删查改)操作,分别对应于HTTP方法: GET用来获取资源(查询), 阅读全文
posted @ 2019-11-05 22:52
Rex-小王紫
阅读(245)
评论(0)
推荐(0)
摘要:
1、swagger2 文档 1、1步骤: 第一步、导入依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.7.0</version> </depe 阅读全文
posted @ 2019-11-05 22:51
Rex-小王紫
阅读(128)
评论(0)
推荐(0)

浙公网安备 33010602011771号