Skip to content

Commit c7b5eec

Browse files
committed
解决前后端分离跨域问题
1 parent 3586435 commit c7b5eec

File tree

12 files changed

+13
-701
lines changed

12 files changed

+13
-701
lines changed

front-rear-separation/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测试 。

swagger-test/.gitignore

-29
This file was deleted.

swagger-test/.mvn/wrapper/MavenWrapperDownloader.java

-114
This file was deleted.
-47.2 KB
Binary file not shown.

swagger-test/.mvn/wrapper/maven-wrapper.properties

-1
This file was deleted.

0 commit comments

Comments
 (0)