# springboot-freemarker-form-verification **Repository Path**: guojinpeng/learn ## Basic Information - **Project Name**: springboot-freemarker-form-verification - **Description**: Spring Boot Freemarker 表单验证 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-07-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 基于Spring Boot + Freemarker的表单验证 ## 第1步,编写实体类 ## 第2步,编写Controller类
注意:
    如果index方法没有传入User对象,页面在刚开始进入的时候会报错
## 第3步,编写Freemarker页面
注意:
    需要在页面中 include引入 spring.ftl 标签文件,否则会没有bind等等标签
    或者在application.yml文件中加入如下配置
spring:
 freemarker:
  settings:
   auto_import: /spring.ftl as spring