1.页面展示
2。apifoxHTTP
3.代码展示
四,常见调试错误一览
(1)pom.xml文件缺失依赖,通过spring生成的pom.xml中并不包含thymeleaf,这一项非常重要,缺少这一项将直接导致apifox的发送404
正确格式在dependencies中添加如下代码
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>然后cril+c停止spring,在终端中输入mvn clean清除缓存,并且输入mvn spring-boot:run重新启动服务
(2)register.html 表单 action 错误
、
action应该改为自己的端口地址
register-success.html 返回链接错误
同理href与上述保持一致
(3)剩下的错误大多都是
1.目录级别不一致
2.启动类等java项目包名出现拼写错误或者混用