blob: f2b30a7c0b49a9d98992f8de808fa8a3aed22e4a [file] [log] [blame]
package org.eclipse.stem.cloud;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.client.RestTemplate;
@ServletComponentScan
@SpringBootApplication
@EnableFeignClients
@CrossOrigin(origins="*")
public class ModelbuilderApplication extends SpringBootServletInitializer{
public static void main(String[] args) {
SpringApplication.run(ModelbuilderApplication.class, args);
}
@Bean
public RestTemplate restTemplate() {
return new RestTemplate();
}
}