Spring boot项目的一些坑

创建spring boot第一个项目时,把Controller和Application放在平层的文件夹下,此举会导致扫描不到Controller。导致访问页面时报404. 正确做法是将Application放在外层。
相关文章
相关标签/搜索