SSM整合文件框架

1、项目架构如图

 web3.0项目,tomcat9.0,自动生成web.xml文件

按照mybatis配置,先自动生成dao层,更改相应信息

我mybatis如何配置:   https://www.cnblogs.com/wangxue1314/p/11852137.html

2、具体文件配置展示

1、web.xml配置如下

 

  

2、mybatis.xml配置如下

 3、springMVC-servlet配置如下

 4、applicationContext.xml配置如下

 

 

 5、jar包如下图

 

 3、项目思路

----视图层,网页jsp----发送请求到控制层 AccountAcion

----控制层发送到逻辑层AccountService做逻辑判断,判断过程中调用持久层Dao中的映射接口,接口调用mapper层对应映射的xml文件,

----在service层把查询到的数据返回到视图层

猜你喜欢

转载自www.cnblogs.com/wangxue1314/p/11853138.html