Skip to content

Instantly share code, notes, and snippets.

@gauravat16
Last active May 10, 2019 17:21
Show Gist options
  • Save gauravat16/7e2e185b554a1de12b3de0a69edbf657 to your computer and use it in GitHub Desktop.
Save gauravat16/7e2e185b554a1de12b3de0a69edbf657 to your computer and use it in GitHub Desktop.
Spring Session with Redis
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
@EnableRedisHttpSession
@EnableEurekaClient
@SpringBootApplication
public class UIApplication {
public static void main(String[] args) {
SpringApplication.run(UIApplication.class, args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment