【springboot】解决springboot项目,扫描不到自定义的controller
如果遇到 http://localhost:8080/test访问出现这个异常This application has no explicit mapping for /error, so you are seeing this as a fallback.可是已经检查了路径没有错误,那很有可能就是springboot没有扫描到自定义的controller1.首先检查一下启动类和自定义类的位置是否正确,以确保springboot能够自动加载。注意:springboot会自动扫描启动类..