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

com.nepxion.discovery.console.configuration.ConsoleAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 6.22.0
Show newest version
package com.nepxion.discovery.console.configuration;

/**
 * 

Title: Nepxion Discovery

*

Description: Nepxion Discovery

*

Copyright: Copyright (c) 2017-2050

*

Company: Nepxion

* @author Haojun Ren * @version 1.0 */ import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; import com.nepxion.discovery.console.authentication.AuthenticationResource; import com.nepxion.discovery.console.authentication.AuthenticationResourceImpl; import com.nepxion.discovery.console.endpoint.ConsoleEndpoint; @Configuration @Import({ SwaggerConfiguration.class, CorsRegistryConfiguration.class }) public class ConsoleAutoConfiguration { protected static class ConsoleEndpointConfiguration { @Bean public ConsoleEndpoint consoleEndpoint() { return new ConsoleEndpoint(); } @Bean @ConditionalOnMissingBean public AuthenticationResource authenticationResource() { return new AuthenticationResourceImpl(); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy