![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SSM
使用SSM框架搭建项目
贪心鸟
即使人老心未老,少年不能再年少
展开
-
使用mybatis-generator自动生成dao层,model层,mapper.xml
mybatis-generator目录使用mysql查询语句新建表用navicat工具新建表用idea新建maven项目使用web-app模板在pom.xml的标签里加入mybatis-generator插件把dao层,model层,mappers层的包新建好在resource下新建datasource配置文件datasource.properties以及mybatis-generator的配置文...原创 2020-03-12 11:21:55 · 504 阅读 · 0 评论 -
spring+springMVC+mybatis搭建一个简单的demo(SSM框架demo)
SSM框架简单demo目录首先我们需要用mybatis-generator生成dao层、model层以及mapper层,以及创建一个数据库叫test,创建一张表叫test_table,参考我的上一篇mybatis-generator博文在resource下分别创建spring的配置文件:applicationContext.xml以及springMVC的配置文件:spring-mvc.xml创建c...原创 2020-03-12 14:43:03 · 184 阅读 · 0 评论