12 2018 档案
摘要:第一步 在POM.XML配置,引入依赖 第二步 创建测试类,一如两个注解 @RunWith(SpringRunner.class) @SpringBootTest //需要制定应用 public class SpringBootTests{}
阅读全文
摘要:热部署官方地址: https://docs.spring.io/spring-boot/docs/2.1.0.BUILD-SNAPSHOT/reference/htmlsingle/#using-boot-devtools 在pom.xml文件中添加如下配置 当保存代码时,则系统会快速重新启动。 配
阅读全文
摘要:1、pom.xml 添加依赖 2、编写controller 3、templates 下新建 home.ftl文件编写html代码,freemarker语法 可参考:FreeMarker 官方文档 启动应用,访问:http://localhost:8080/home ,可以得到相应结果。如需修改 fr
阅读全文

浙公网安备 33010602011771号