All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mockserver.examples.proxy.service.apacheclient.ApacheHttpClientConfiguration Maven / Gradle / Ivy

There is a newer version: 5.15.0
Show newest version
package org.mockserver.examples.proxy.service.apacheclient;

import org.mockserver.examples.proxy.service.BookService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.context.annotation.PropertySource;

/**
 * This configuration contains top level beans and any configuration required by filters (as WebMvcConfiguration only loaded within Dispatcher Servlet)
 *
 * @author jamesdbloom
 */
@Configuration
@Profile("apacheClient")
@PropertySource({"classpath:application.properties"})
public class ApacheHttpClientConfiguration {

    @Bean
    BookService bookService() {
        return new BookServiceApacheHttpClient();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy