[英]JSP/javabean/servlet MVC
Where should mysql code go in terms of MVC? mysql代码应该放在哪里MVC? Obviously not the view.
显然不是观点。
It's not part of MVC. 它不是MVC的一部分。 It should go in a DAO class which is (in)directly called by C.
它应该进入一个直接由C调用的DAO类。
It should be in one separate layer. 它应该在一个单独的层中。 which your service layer should be calling from Controller(Servlet)
您的服务层应该从Controller(Servlet)调用
Also See 另见
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.