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

com.nepxion.discovery.plugin.strategy.gateway.context.GatewayStrategyApplicationContextInitializer Maven / Gradle / Ivy

There is a newer version: 6.22.0
Show newest version
package com.nepxion.discovery.plugin.strategy.gateway.context;

/**
 * 

Title: Nepxion Discovery

*

Description: Nepxion Discovery

*

Copyright: Copyright (c) 2017-2050

*

Company: Nepxion

* @author Haojun Ren * @version 1.0 */ import org.springframework.context.ApplicationContextInitializer; import org.springframework.context.ConfigurableApplicationContext; import com.nepxion.discovery.common.constant.DiscoveryConstant; public class GatewayStrategyApplicationContextInitializer implements ApplicationContextInitializer { @Override public void initialize(ConfigurableApplicationContext applicationContext) { System.setProperty(DiscoveryConstant.SPRING_APPLICATION_TYPE, DiscoveryConstant.GATEWAY_TYPE); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy