package nl.matsv.paaaas;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.AutowireCapableBeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AppConfig {
    private final AutowireCapableBeanFactory beanFactory;

    @Autowired
    public AppConfig(AutowireCapableBeanFactory beanFactory) {
        this.beanFactory = beanFactory;
    }

    @Bean
    public DataProvider dataProvider() {
        DataProvider provider = new DataProvider();
        beanFactory.autowireBean(provider);
        return provider;
    }
}

@@ -50,628 +50,220 @@
 ork.
-beans.factory.annotation.Autowired;%0Aimport org.springframework.beans.factory.config.AutowireCapableBeanFactory;%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.Configuration;%0A%0A@Configuration%0Apublic class AppConfig %7B%0A    private final AutowireCapableBeanFactory beanFactory;%0A%0A    @Autowired%0A    public AppConfig(AutowireCapableBeanFactory beanFactory) %7B%0A        this.beanFactory = beanFactory;%0A    %7D%0A%0A    @Bean%0A    public DataProvider dataProvider() %7B%0A        DataProvider provider = new DataProvider();%0A        beanFactory.autowireBean(provider);%0A        return provider
+context.annotation.Bean;%0Aimport org.springframework.context.annotation.Configuration;%0A%0A@Configuration%0Apublic class AppConfig %7B%0A%0A    @Bean%0A    public DataProvider dataProvider() %7B%0A        return new DataProvider()
 ;%0A  

Remove the bean factory.