mall学习笔记(2)

发布时间 2023-05-07 17:01:17作者: Capterlliar

1. Spring注解:代替xml配置文件

2. @Autowired:修饰成员变量进行依赖注入

Could not autowire. No beans of ‘xxx” type found(三种方法)

3.  mybatis examle类:进行sql查询等操作

4. swagger使用

配置Swagger2Config

添加@ApiOperation(" ")

打开http://localhost:8080/swagger-ui.html

可以看到并且测试接口

还蛮方便的

5. 今日进度

尝试写了点具体代码并调用接口