feat:support dynamic multi-discovery.

pull/1594/head
fishtailfu 4 months ago
parent 6d3eb3fc31
commit 954e7167ce

@ -25,6 +25,7 @@ import com.tencent.polaris.api.utils.StringUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.env.EnvironmentPostProcessor;
import org.springframework.core.Ordered;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.MapPropertySource;
@ -33,7 +34,11 @@ import org.springframework.core.env.MapPropertySource;
*
* @author Haotian Zhang
*/
public final class TsfLastEnvironmentPostProcessor implements EnvironmentPostProcessor {
public final class TsfLastEnvironmentPostProcessor implements EnvironmentPostProcessor, Ordered {
@Override
public int getOrder() {
return -2147483637;
}
@Override
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) {
String tsfAppId = environment.getProperty("tsf_app_id");

Loading…
Cancel
Save