1.引入依赖jar包
<dependency>
<groupId>com.ibeetl</groupId>
<artifactId>beetl-framework-starter</artifactId>
<version>1.2.28.RELEASE</version>
</dependency>
2.application.properties 新增配置
beetlsql.enabled=false
beetl.suffix=html
beetl.templatesPath=templates
3.resources下建目录为templates 然后在该目录下建立index1.html 内容
${beetl}
4.建立controller
@Controller
public class IndexController {
@AllowAccess
@RequestMapping("/")
public String index(ModelMap map, HttpServletRequest request) {
request.setAttribute("beetl","beetl集成测试");
return "index1.html";
}
}
5访问看看 xxxx:端口 看看