💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
html htm 伪静态html 1.pom文件引入 ~~~ <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarker</artifactId> </dependency> ~~~ 2.后台代码 ~~~ @Controller public class FTLIndexController { @RequestMapping("/ftlIndex") public String ftlIndex(){ return "ftlIndex"; } } ~~~ ![](https://box.kancloud.cn/a20fd51c5ba980a62210e50208fc349f_675x434.png) ~~~ @Controller public class FTLIndexController { @RequestMapping("/ftlIndex") public String ftlIndex(Map<String,Object>map){ map.put("name", "张三"); map.put("age",20); map.put("sex", "1"); return "ftlIndex"; } } ~~~ ~~~ //ftlIndex.ftl ${name} ${age} <#if sex=="0"> 男生 <#else> 女士 </#if> ~~~ ~~~ 集合遍历 <#list list! as i> ${i!} </#list> ~~~ [ftl语法](http://www.mamicode.com/info-detail-2454300.html)