架构知识总结

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

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

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

原文地址:https://www.cnblogs.com/aspirant/p/12204959.html