1.三层架构

 

 

java中的接口两种含义:(1)接口(2)用户能用到的功能,即方法

2.Servlet 用在 Controller层

Controller:控制前端和后端交互。和前端页面打交道

通过Servlet用request,response和前后端打交道

 

3.

Dao层:定义了接口

Service层:调用了Dao层

Controller层:使用了Service层提供的服务

 

相关文章:

  • 2022-02-07
  • 2022-02-06
  • 2021-07-23
  • 2021-11-27
  • 2021-04-29
  • 2021-11-26
  • 2021-11-25
猜你喜欢
  • 2021-11-19
  • 2021-11-27
  • 2021-06-16
  • 2021-10-14
  • 2021-09-17
  • 2021-11-10
  • 2021-08-25
相关资源
相似解决方案