content: /**
   * Copyright (c) 2010-present Abixen Systems. All rights reserved.
   * <p>
   * This library is free software; you can redistribute it and/or modify it under
   * the terms of the GNU Lesser General Public License as published by the Free
   * Software Foundation; either version 2.1 of the License, or (at your option)
   * any later version.
   * <p>
   * This library is distributed in the hope that it will be useful, but WITHOUT
   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
   * details.
   */
  
  package com.abixen.platform.gateway;
  
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
  import org.springframework.cloud.client.loadbalancer.LoadBalanced;
  import org.springframework.context.annotation.Bean;
  import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory;
  import org.springframework.retry.annotation.EnableRetry;
  import org.springframework.session.data.redis.config.annotation.web.server.EnableRedisWebSession;
  import org.springframework.web.reactive.config.EnableWebFlux;
  import org.springframework.web.reactive.function.client.WebClient;
  
  
  @EnableRedisWebSession
  @EnableRetry
  @SpringBootApplication(scanBasePackages = {"com.abixen.platform.gateway"})
  @EnableDiscoveryClient
  @EnableWebFlux
  public class PlatformGatewayApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(PlatformGatewayApplication.class, args);
      }
  
  
      @Bean
      @LoadBalanced
      public WebClient.Builder loadBalancedWebClientBuilder() {
          return WebClient.builder();
      }
  
  
      @Bean
      public LettuceConnectionFactory redisConnectionFactory() {
          return new LettuceConnectionFactory();
      }
  
  
  }
  