The dependencies of some of the beans in the application context form a cycle: spring中依赖进入循环的解决办法 只需要再application.properties 文件中 加入 一行代码 spring.datasource.initialize=false 重新运行 就ojbk 了