2024-02-26 19:15:34 +08:00
|
|
|
package com.qihang.sys.api;
|
2024-01-19 17:12:41 +08:00
|
|
|
|
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!
|
|
|
|
|
*
|
|
|
|
|
*/
|
2024-02-26 19:15:34 +08:00
|
|
|
@EnableFeignClients(basePackages = "com.qihang.sys.api")
|
2024-01-21 17:37:03 +08:00
|
|
|
@EnableDiscoveryClient
|
2024-02-26 19:15:34 +08:00
|
|
|
@ComponentScan(basePackages={"com.qihang"})
|
|
|
|
|
@MapperScan("com.qihang.sys.api.mapper")
|
2024-01-19 17:12:41 +08:00
|
|
|
@SpringBootApplication
|
2024-02-26 19:15:34 +08:00
|
|
|
public class SysApi
|
2024-01-19 17:12:41 +08:00
|
|
|
{
|
|
|
|
|
public static void main( String[] args )
|
|
|
|
|
{
|
2024-02-26 19:15:34 +08:00
|
|
|
System.out.println( "Hello sys-api!" );
|
|
|
|
|
SpringApplication.run(SysApi.class, args);
|
2024-01-19 17:12:41 +08:00
|
|
|
}
|
|
|
|
|
|
2024-02-26 19:15:34 +08:00
|
|
|
// @Bean
|
|
|
|
|
// @LoadBalanced
|
|
|
|
|
// public RestTemplate restTemplate() {
|
|
|
|
|
// return new RestTemplate();
|
|
|
|
|
// }
|
2024-01-19 17:12:41 +08:00
|
|
|
}
|