问题:SpringBoot访问不到Controller

SpringBoot正常启动,其它配置都正常,以下是控制台打印:

解决方法:

  将controller与application配置文件同层,是访问时无法扫描到相应的controller,故无法映射到相应地址   

原文地址:https://www.cnblogs.com/tongxuping/p/10493176.html