Skip to content

io microsphere spring cloud gateway commons config ConfigUtils

github-actions[bot] edited this page Jul 1, 2026 · 6 revisions

ConfigUtils

Type: Class | Module: microsphere-spring-cloud-gateway-commons | Package: io.microsphere.spring.cloud.gateway.commons.config | Since: 1.0.0

Source: microsphere-spring-cloud-gateway-commons/src/main/java/io/microsphere/spring/cloud/gateway/commons/config/ConfigUtils.java

Overview

The utilities class for Configuration

Declaration

public abstract class ConfigUtils implements Utils

Author: Mercy

Version Information

  • Introduced in: 1.0.0
  • Current Project Version: 0.2.11-SNAPSHOT

Version Compatibility

This component is tested and compatible with the following Java versions:

Java Version Status
Java 17 ✅ Compatible
Java 21 ✅ Compatible
Java 25 ✅ Compatible

Usage

Maven Dependency

Add the following dependency to your pom.xml:

<dependency>
    <groupId>io.github.microsphere-projects</groupId>
    <artifactId>microsphere-spring-cloud-gateway-commons</artifactId>
    <version>${microsphere-gateway.version}</version>
</dependency>

Tip: Use the BOM (microsphere-gateway-dependencies) for consistent version management. See the Getting Started guide.

Import

import io.microsphere.spring.cloud.gateway.commons.config.ConfigUtils;

API Reference

Public Methods

Method Description
getWebEndpointConfig Get the WebEndpointConfig from the specified Environment
getWebEndpointConfig Get the WebEndpointConfig from the specified metadata

Method Details

getWebEndpointConfig

public static WebEndpointConfig getWebEndpointConfig(Environment environment, String configPrefix)

Get the WebEndpointConfig from the specified Environment

getWebEndpointConfig

public static WebEndpointConfig getWebEndpointConfig(Map<String, Object> metadata)

Get the WebEndpointConfig from the specified metadata

See Also

  • WebEndpointConfig

This documentation was auto-generated from the source code of microsphere-gateway.

Clone this wiki locally