解决方法:
1.在执行springboot运行后后台已插入数据了,前台的跳转出现了异常,看配置文件中是否配置了
spring.mvc.view.prifix=classpath:/static/
spring.mvc.view.suffix=.html
2.加入依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
3.看form表单的提交按钮类型是否为button 还是sumbit,如果是sumbit把它改为button就可以了