| | |
| | | import org.springblade.core.launch.BladeApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; |
| | | import org.springframework.boot.web.client.RestTemplateBuilder; |
| | | import org.springframework.cloud.openfeign.EnableFeignClients; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.web.client.RestTemplate; |
| | | |
| | | @BladeCloudApplication |
| | | @EnableFeignClients({"cn.gistack"}) |
| | |
| | | public static void main(String[] args) { |
| | | BladeApplication.run("blade-sm", SmApplication.class, args); |
| | | } |
| | | |
| | | @Bean |
| | | public RestTemplate restTemplate(RestTemplateBuilder builder){ |
| | | return builder.build(); |
| | | } |
| | | |
| | | } |