Class GeoIpConfig

java.lang.Object
org.localify.common.config.beans.GeoIpConfig

@Configuration public class GeoIpConfig extends Object
Configuration for GeoIP-related beans.
  • Constructor Details

    • GeoIpConfig

      public GeoIpConfig()
  • Method Details

    • geoIpService

      @Bean public GeoIpService geoIpService(LocalifyProperties props)
      Creates a GeoIpService bean. If the GeoIP database path is not configured, a NoOpGeoIp service is returned.
      Parameters:
      props - The application properties.
      Returns:
      The GeoIpService bean.