springboot 搭建 简单 web项目 【springboot + freemark模板 + yml 配置文件 + 热修复 + 测试用例】附源码

项目 地址:  https://gitee.com/sanmubird/springboot-simpleweb.git

项目介绍:

本项目主要有一下内容:

1: springboot yml 配置

2: springboot 和 freeamark 搭配使用:

 1): 页面跳转:分别使用了 RestController 注解 和 Controller 注解

 2):值传递: 也分别尝试了  RestController 注解 和 Controller 注解

3:热修复:

1): 尝试了 修复方法体;

2): 尝试热新增 方法;

3): 尝试了热新增类;

以上 均可实现:

实现方式:依赖 + 配置

1: 依赖:

2:配置

4: 测试用例:

使用 mock  Mock 出 mvc 控制层 进行请求转发:

猜你喜欢

转载自www.cnblogs.com/sanmubird/p/9315186.html
今日推荐