package com.otognan.driverpete.security;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.social.SocialWebAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@EnableAutoConfiguration(exclude = { SocialWebAutoConfiguration.class })
@Configuration
@ComponentScan
public class StatelessAuthentication {

	public static void main(String[] args) {
		SpringApplication.run(StatelessAuthentication.class, args);
	}

}

@@ -235,32 +235,174 @@
 Configuration;%0D%0A
+import org.springframework.boot.builder.SpringApplicationBuilder;%0D%0Aimport org.springframework.boot.context.web.SpringBootServletInitializer;%0D%0A
 import org.sprin
@@ -443,24 +443,24 @@
 onentScan;%0D%0A
-
 import org.s
@@ -654,16 +654,53 @@
 ication 
+extends SpringBootServletInitializer 
 %7B%0D%0A%0D%0A%09pu
@@ -808,11 +808,435 @@
 %0D%0A%09%7D%0D%0A%0D%0A
+%09/*%0D%0A%09 * This method together with inheriting SpringBootServletInitializer makes the%0D%0A%09 * application class support Servlet 3.0 interfaces so that it can be executed%0D%0A%09 * in the external servlet container (e.g. Tomcat provided by Amazon)%0D%0A%09*/%0D%0A    @Override%0D%0A    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) %7B%0D%0A        return application.sources(StatelessAuthentication.class);%0D%0A    %7D%0D%0A
 %7D%0D%0A

add container support