本人是编码小白,最近跟着b站在idea上学习一个项目,然后代码与老师的一样,但是当我在网页上用localhost:8080/users/reg?username=tom&password=123运行时,可以正常进行注册,但是当用户名重复时出现500错误,
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Jan 13 20:08:47 CST 2022
There was an unexpected error (type=Internal Server Error, status=500).
如图:
希望各位大佬能帮我一下,谢谢谢谢