提交表单要有input的名字 尽量不要使用 @Autowired方式注解 @Autowired DepartmentDao departmentDao; 如果这样设置将会在提交表单的时候必须以这种格式来提交 spring.mvc.date-format=yyyy-MM-dd springboot会严格按要求的配置来执行,一定看清配置项