SSM集成

作者: 冯文议 | 来源:发表于2018-05-04 23:31 被阅读302次

SSM

SSM集成开发RESTful风格的API接口示例

主要集成以下框架:

  • Spring
  • SpringMVC
  • MyBatis
  • Swagger2
  • Log4j

截图

API接口

api.png

看一下具体的内容

api-get.png

代码

api-get-code.png

请求访问

api-get-test.png

API首页

api-home.png

SSM架构图

ssm.png

简单讲解

1、集成Spring/SpringMVC/MyBatis

2、集成Swagger2

3、集成Log4j

4、使用阿里巴巴数据库连接池:Druid

5、开发工具是:IDEA。新建Module->Maven->Simple Web App

访问

1、首页

http://localhost:8080

2、API

http://localhost:8080/swagger-ui.html
api-ui.png

3、数据库监控

http://localhost:8080/druid/index.html
druid-index.png

资料

太累了,就不对代码进行讲解了,建议去看源码吧!

1、Github

2、RESTful API

3、MyBatis系列教程

4、个人主页

相关文章

网友评论

      本文标题:SSM集成

      本文链接:https://www.haomeiwen.com/subject/uphjrftx.html