传送门Gitee源码地址:https://gitee.com/danyuanblog/PopularMVC 演示地址:http://www.danyuanblog.com:8181/doc.html 官方文档地址:http://www.danyuanblog.com/blog/app/blog/blogDetail.html?id=5fe86eb74c636312f4b70955 1、应用场景简介
1.1 项目架构说明1.1.1 PopularMVC跟Springboot的关系
1.1.2 PopularMVC项目组件架构解析
1.2 其他说明
2、项目模块
3、入门demo3.1 项目结构
<dependency> <groupId>com.danyuanblog.framework</groupId> <artifactId>popular-web-mvc</artifactId> <version>${popular-web-mvc.version}</version> </dependency> 3.2 启用PopularMvc框架/** * Title StartDemoApplication.java * Description * @author danyuan * @date Oct 31, 2020 * @version 1.0.0 * site: www.danyuanblog.com */ package com.danyuanblog.framework.demo.popularmvc; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import com.danyuanblog.framework.popularmvc.annotation.EnablePopularMvc; @SpringBootApplication @EnablePopularMvc public class StartDemoApplication { public static void main(String[] args) { SpringApplication.run(StartDemoApplication.class, args); } } 3.3 测试接口代码示例
3.4 测试接口结果
3.4.1 测试参数校验
3.4.2 测试正常响应信息返回
3.4.3 测试业务异常的使用
3.4 更多功能示例
4、更多特性介绍与使用示例4.1 参数校验示例4.2 自动填充API响应参数示例4.3 业务错误码使用示例4.4 接口响应国际化翻译示例4.5 使用数字签名示例4.6 接口数据加解密示例4.7 接口防重复提交功能示例4.8 接口查询缓存使用示例4.9 接口用户会话功能使用示例4.10 静态资源使用示例5、业务定制化5.1 配置定制化
5.2 组件定制化
6、交流与答疑
| |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
popularmvc让你的springboot应用接口不再裸奔!
最新推荐文章于 2023-02-17 14:37:19 发布