启动告警: Cannot enhance @Configuration bean definition 'mybatisConfigurer' since its singleton instance has been created too early.

Author: gclsoftCreated Apr 3, 2019Updated Nov 2, 2021

14:35:30.408 m [main] WARN o.s.c.a.ConfigurationClassPostProcessor - Cannot enhance @Configuration bean definition 'mybatisConfigurer' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'.

可以直接去掉@Configuration吗?

Source: lihengming/spring-boot-api-project-seed