2024-01-19 17:12:41 +08:00
|
|
|
package com.qihang.oms.api;
|
|
|
|
|
|
2024-01-22 18:09:04 +08:00
|
|
|
import org.mybatis.spring.annotation.MapperScan;
|
2024-01-19 17:12:41 +08:00
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
|
|
|
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
|
|
|
|
|
import org.springframework.cloud.openfeign.EnableFeignClients;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
|
|
|
import org.springframework.web.client.RestTemplate;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Hello world!
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
@EnableFeignClients(basePackages = "com.qihang.oms.api")
|
2024-01-21 17:37:03 +08:00
|
|
|
@EnableDiscoveryClient
|
2024-01-22 18:09:04 +08:00
|
|
|
//@ComponentScan(basePackages={"com.qihang"})
|
|
|
|
|
@MapperScan("com.qihang.oms.api.mapper")
|
2024-01-19 17:12:41 +08:00
|
|
|
@SpringBootApplication
|
2024-01-22 14:35:36 +08:00
|
|
|
public class OmsApi
|
2024-01-19 17:12:41 +08:00
|
|
|
{
|
|
|
|
|
public static void main( String[] args )
|
|
|
|
|
{
|
|
|
|
|
System.out.println( "Hello World!" );
|
2024-01-22 14:35:36 +08:00
|
|
|
SpringApplication.run(OmsApi.class, args);
|
2024-01-19 17:12:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
|
@LoadBalanced
|
|
|
|
|
public RestTemplate restTemplate() {
|
|
|
|
|
return new RestTemplate();
|
|
|
|
|
}
|
|
|
|
|
}
|