package com.ym; import lombok.extern.slf4j.Slf4j; 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.Configuration; import org.springframework.context.annotation.EnableAspectJAutoProxy; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.web.client.RestTemplate; @EnableAspectJAutoProxy @Slf4j @SpringBootApplication @EnableFeignClients("com.ym") @EnableScheduling @EnableDiscoveryClient @Configuration public class SealClassApplication { public static void main(String[] args) { SpringApplication.run(SealClassApplication.class, args); log.info("SealClassApplication started"); } @Bean @LoadBalanced public RestTemplate restTemplate(){ return new RestTemplate(); } }