创建springboot新项目时,项目出错
1.构建配置路径,maven dependencies有错
解决办法:
重新配置maven
具体步骤
https://www.csdn.net/tags/OtDaYg4sODkwNi1ibG9n.html
maven官网
https://maven.apache.org/download.cgi
2.Web server failed to start. Port 8080 was already in use.
解决办法:
找到占用端口的进程,并将它关闭

3.Error resolving template [users], template might not exist or might not be accessible by any of the configured Template Resolvers报错
问题解析:
a.解析模板[users]时出错,模板可能不存在,或者任何已配置的模板解析程序都无法访问该模板
b.模板页不存在,运行时找不到,然后报错
c.(正确的boot+thymeleaf例子)

问题解决:
创建user页面,保证页面正确返回
使用@ResponseBody,数据形式返回
浙公网安备 33010602011771号