Skip to content

Instantly share code, notes, and snippets.

View itsymbal's full-sized avatar

Ilya Tsymbal itsymbal

  • Orange Penguin, Inc.
  • Arlington, MA
View GitHub Profile
@SlyDen
SlyDen / Application.java
Created March 7, 2014 09:41
Sample of Spring Boot config with custom setting for embedded Tomcat And OAuth ... imports are skiped. https://github.com/joshlong/the-spring-rest-stack/blob/master/code/web/oauth/src/main/java/com/jl/crm/web/Application.java
@ComponentScan
@Import(ServiceConfiguration.class)
@EnableHypermediaSupport(type = EnableHypermediaSupport.HypermediaType.HAL)
@EnableAutoConfiguration
public class Application extends SpringBootServletInitializer {
private static Class<Application> applicationClass = Application.class;
public static void main(String[] args) {
SpringApplication.run(applicationClass);
}