架构知识总结

(1)在细分的时候,controller和api层是两个平行的层,都去调用service层,不要 使用controller调用api层;

(2)controller的方法上的注解最好使用 PostMapping、GetMapping;少使用RequestMapping,,spring5以后RequestMapping有些的参数赋值不支持

(3) 分层由上到下 API==>Service==>Manager==>DAO;层

posted @ 2020-01-17 11:29  aspirant  阅读(359)  评论(0编辑  收藏  举报