spring boot-beans in application context form a cycle

  Spring’s bean generation cycle conflicts, as shown in the following figure:

To exclude some configurations

@SpringBootApplication(exclude = {RedisAutoConfiguration.class,DataSourceAutoConfiguration.class, XADataSourceAutoConfiguration.class,
         JdbcTemplateAutoConfiguration.class})

Read More: