Consider defining a bean of type问题解决 application 和controller在同一个文件夹下,会报错,找不到注入形的bean 解决方法 调整控制器Controller目录,将application放在同级目录下