Skip to content

Commit f3f6a82

Browse files
committed
阿里云对象云存储
1 parent c7b5eec commit f3f6a82

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

aliyun-oss-demo/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Spring Boot和Mybatis的集成——注解方式
2+
- entity包:Course实体类
3+
- mapper包:CourseMapper接口,采用Mybatis的注解开发CRUD操作
4+
- service包:CourseService接口及实现类,调用CourseMapper接口
5+
- controller包:CourseController类,采用RESTful风格请求,处理客户端的增删改查请求
6+
7+
# 注意点:
8+
- service实现类加@Service注解
9+
- 启动主类加:@MapperScan("com.springboot.mybatis.mapper")注解
10+
- controller类加:@RestController注解
11+
- 不同的操作用不同的请求方法:GET、POST、DELETE、PUT
12+
- service层单元测试
13+
- controller层Postman测试 。

0 commit comments

Comments
 (0)