| package modelbuilder; |
| |
| 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(); |
| } |
| |
| } |