2026-03-07 11:20:39 +08:00
|
|
|
package cn.qihangerp.erp;
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
|
//import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
//@EnableDiscoveryClient
|
|
|
|
|
//@MapperScan("cn.qihangerp.oms.mapper")
|
|
|
|
|
@EnableFeignClients(basePackages = "cn.qihangerp.erp")
|
2026-03-08 19:54:41 +08:00
|
|
|
//@EnableDiscoveryClient
|
2026-03-07 11:20:39 +08:00
|
|
|
@ComponentScan(basePackages={"cn.qihangerp"})
|
|
|
|
|
@SpringBootApplication
|
|
|
|
|
public class AiAgent {
|
|
|
|
|
public static void main( String[] args )
|
|
|
|
|
{
|
|
|
|
|
System.out.println( "Hello ai-agent!" );
|
|
|
|
|
SpringApplication.run(AiAgent.class, args);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@Bean
|
|
|
|
|
@LoadBalanced
|
|
|
|
|
public RestTemplate restTemplate() {
|
|
|
|
|
return new RestTemplate();
|
|
|
|
|
}
|
|
|
|
|
}
|