SSM集成
2019獨角獸企業重金招聘Python工程師標準>>>
SSM
SSM集成開發RESTful風格的API接口示例
主要集成以下框架:
- Spring
- SpringMVC
- MyBatis
- Swagger2
- Log4j
截圖
API接口
看一下具體的內容
代碼
請求訪問
API首頁
SSM架構圖
簡單講解
1、集成Spring/SpringMVC/MyBatis
2、集成Swagger2
3、集成Log4j
4、使用阿里巴巴數據庫連接池:Druid
5、開發工具是:IDEA。新建Module->Maven->Simple Web App
訪問
1、首頁
http://localhost:80802、API
http://localhost:8080/swagger-ui.html3、數據庫監控
http://localhost:8080/druid/index.html資料
太累了,就不對代碼進行講解了,建議去看源碼吧!
1、Github
2、RESTful API
3、MyBatis系列教程
4、個人主頁
轉載于:https://my.oschina.net/fengwenyi/blog/1807110
總結
- 上一篇: Vue、React、Angular最佳U
- 下一篇: 在windowService用Proce