Controller ----Service ----Mapper

UserController(前段控制器的操作 你可以看看如何) —> userService(这个是中间插件类似的一个桥梁)—> UserMapper(实现类的接口 实现具体数据库的操作) 1 首先是Controller 里面 注释@RestController 然后里面注入Service @Autowire Service 进行接口类似的特征 然后 Service 添加@Service 注释
相关文章
相关标签/搜索