/FileExtraction/Java_unseen/asarkar_spring/beer-demo/couchbase-client/src/main/java/org/abhijitsarkar/spring/beer/BeerDemoApplication.java
package org.abhijitsarkar.spring.beer;

import org.abhijitsarkar.spring.beer.factory.CouchbaseAsyncBucketFactory;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.couchbase.CouchbaseRepositoriesAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication(exclude = {CouchbaseRepositoriesAutoConfiguration.class})
@EnableAsync
public class BeerDemoApplication {
    public static void main(String[] args) {
        new SpringApplicationBuilder(BeerDemoApplication.class)
                .web(true)
                .run(args);
    }

    @Bean
    DbInitializer dbInitializer(CouchbaseAsyncBucketFactory couchbaseAsyncBucketFactory) {
        return new DbInitializer(couchbaseAsyncBucketFactory);
    }
}
