摘要: 一、MongoDB 1. 搜索镜像:docker search MongoDB; 2. 拉取镜像:docker pull mongo:latest; 3. 查看本地镜像:docker images; 4. stack.yml部署文件; version: '3.8' services: # Mongo 阅读全文
posted @ 2020-08-28 15:36 如幻行云 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 一、声明Bean 1. @Component:表示一个组件,标识为Spring中的Bean,可以作用在任何层次; 2. @Controller A. 通常作用在控制层,其功能与@Component相同; B. 组合注解:@RestController,相当于@Controller+@Response 阅读全文
posted @ 2020-08-28 12:38 如幻行云 阅读(158) 评论(0) 推荐(0) 编辑