Skip to content

Instantly share code, notes, and snippets.

@odedia
Created November 19, 2017 19:56
Show Gist options
  • Select an option

  • Save odedia/a4c1179c86104a5a722932f1ba83a9aa to your computer and use it in GitHub Desktop.

Select an option

Save odedia/a4c1179c86104a5a722932f1ba83a9aa to your computer and use it in GitHub Desktop.
package com.odedia.springsession;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
@SpringBootApplication
@EnableDiscoveryClient
@EnableZuulProxy
@EnableWebSecurity
@EnableRedisHttpSession
public class GatewayApplication {
public static void main(String[] args) {
SpringApplication.run(GatewayApplication.class, args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment