结构路径
util 工具类
把需要用到的工具类创建在这里
controller
- 新建 CommonController 类
1 |
|
service
- 新建 CommonService 类
1 | public interface CommonService { |
service.impl
- 默认核心代码都写在这里
1 |
|
把需要用到的工具类创建在这里
1 | @Controller |
1 | public interface CommonService { |
1 | @Service |
本文地址:https://tonysteven.github.io/2018/08/07/java-RESTful-api/
转载请注明出处,谢谢!
微信支付
支付宝