- 博客(2)
- 收藏
- 关注
原创 SpringBoot 学习笔记
SpringBoot 学习笔记一、Spring工作流程二、分层说明Controller: 注意在此层中将包含Config配置和拦截器/过滤器,负责与前端进行交互,下属各个方法也需要@GetMapping等等注解注解@Controller 处理http请求*@Controllerpublic class HelloController { @RequestMapping(value="/hello",method= RequestMethod.GET) public
2021-12-13 14:22:02 426
原创 SpringBoot初使用
SpringBoot初使用笔记一共有5个层 Controller,beans,common,mapper,serviceController:负责与前端进行交互,需要注解@RestController@RequestMapping("/goods")下属各个方法也需要@GetMapping等等注解注意在此层中将包含Config配置和拦截器/过滤器Beans层:实现各个实体的函数的属性Common层:注解: @Data@NoArgsConstructor@AllArgsConstruc
2021-12-07 14:31:39 279
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人