mall学习笔记(2)

Posted on 2023-05-07 16:57  Capterlliar  阅读(15)  评论(0编辑  收藏  举报

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. 今日进度

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