架构知识总结
(1)在细分的时候,controller和api层是两个平行的层,都去调用service层,不要 使用controller调用api层;
(2)controller的方法上的注解最好使用 PostMapping、GetMapping;少使用RequestMapping,,spring5以后RequestMapping有些的参数赋值不支持
(3) 分层由上到下 API==>Service==>Manager==>DAO;层
本文来自博客园,作者:aspirant,转载请注明原文链接:https://www.cnblogs.com/aspirant/p/12204959.html