Skip to content

io microsphere i18n spring cloud server autoconfigure I18nServerAutoConfiguration

github-actions[bot] edited this page Jul 9, 2026 · 1 revision

I18nServerAutoConfiguration

Type: Class | Module: microsphere-i18n-spring-cloud-server | Package: io.microsphere.i18n.spring.cloud.server.autoconfigure | Since: 1.0.0

Source: microsphere-i18n-spring-cloud-server/src/main/java/io/microsphere/i18n/spring/cloud/server/autoconfigure/I18nServerAutoConfiguration.java

Overview

The Auto-Configuration Class for I18n Server that discovers services via DiscoveryClient and builds PropertySourcesServiceMessageSource instances for each service.

Example Usage

`// Automatically imported via @EnableI18nServer
  // Creates a CompositeServiceMessageSource containing one
  // PropertySourcesServiceMessageSource per discovered service
`

Declaration

public class I18nServerAutoConfiguration

Author: Mercy

Version Information

  • Introduced in: 1.0.0
  • Current Project Version: 0.2.17-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

Examples

// Automatically imported via @EnableI18nServer
  // Creates a CompositeServiceMessageSource containing one
  // PropertySourcesServiceMessageSource per discovered service

Usage

Maven Dependency

Add the following dependency to your pom.xml:

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

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

Import

import io.microsphere.i18n.spring.cloud.server.autoconfigure.I18nServerAutoConfiguration;

API Reference

Public Methods

Method Description
lazyCompositeServiceMessageSource The bean name of #lazyCompositeServiceMessageSource()
onApplicationStartedEvent

Method Details

lazyCompositeServiceMessageSource

public CompositeServiceMessageSource lazyCompositeServiceMessageSource()

The bean name of #lazyCompositeServiceMessageSource() / public static final String LAZY_COMPOSITE_SERVICEMESSAGE_SOURCE_BEAN_NAME = "lazyCompositeServiceMessageSource";

See Also

  • PropertySourcesServiceMessageSource

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

Clone this wiki locally