Package com.almis.awe.autoconfigure
Class RestConfig
java.lang.Object
com.almis.awe.autoconfigure.RestConfig
@Configuration
@EnableConfigurationProperties(RestConfigProperties.class)
public class RestConfig
extends Object
Class used to start AWE as a microservice
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.client.ClientHttpRequestFactory
Define client http request factory bean
-
Constructor Details
-
RestConfig
Rest config constructor- Parameters:
properties
- Rest configuration properties
-
-
Method Details
-
httpComponentsClientHttpRequestFactory
@Bean public org.springframework.http.client.ClientHttpRequestFactory httpComponentsClientHttpRequestFactory() throws NoSuchAlgorithmException, KeyStoreException, KeyManagementExceptionDefine client http request factory bean- Returns:
- Client http request factory
- Throws:
NoSuchAlgorithmException
KeyStoreException
KeyManagementException
-