// Path: FoodTrayService/src/main/java/com/github/joffryferrater/foodtrayservice/repository/ItemServiceRepository.java
// @FeignClient(value="ITEM-SERVICE", fallback=ItemServiceFallback.class)
// public interface ItemServiceRepository {
// 
// 	@RequestMapping(method=RequestMethod.GET, value="/items/search/findByItemCode?itemCode={itemCode}")
// 	Item findByItemCode(@PathVariable("itemCode") String itemCode);
// }
// 
// Path: FoodTrayService/src/main/java/com/github/joffryferrater/foodtrayservice/repository/PriceServiceRepository.java
// @FeignClient(value="PRICE-SERVICE", fallback=PriceServiceRepository.class)
// public interface PriceServiceRepository {
// 
// 	@RequestMapping(method=RequestMethod.GET, value="/prices/search/findByItemCode?itemCode={itemCode}")
// 	Price findByItemCode(@PathVariable("itemCode") String itemCode);
// }


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.context.annotation.ComponentScan;
import com.github.joffryferrater.foodtrayservice.repository.ItemServiceRepository;
import com.github.joffryferrater.foodtrayservice.repository.PriceServiceRepository;
package com.github.joffryferrater.foodtrayservice;



@SpringBootApplication
@EnableDiscoveryClient
@EnableCircuitBreaker
@EnableHystrixDashboard
@EnableHystrix
//@EnableFeignClients
// Path: FoodTrayService/src/main/java/com/github/joffryferrater/foodtrayservice/repository/ItemServiceRepository.java
// @FeignClient(value="ITEM-SERVICE", fallback=ItemServiceFallback.class)
// public interface ItemServiceRepository {
// 
// 	@RequestMapping(method=RequestMethod.GET, value="/items/search/findByItemCode?itemCode={itemCode}")
// 	Item findByItemCode(@PathVariable("itemCode") String itemCode);
// }
// 
// Path: FoodTrayService/src/main/java/com/github/joffryferrater/foodtrayservice/repository/PriceServiceRepository.java
// @FeignClient(value="PRICE-SERVICE", fallback=PriceServiceRepository.class)
// public interface PriceServiceRepository {
// 
// 	@RequestMapping(method=RequestMethod.GET, value="/prices/search/findByItemCode?itemCode={itemCode}")
// 	Price findByItemCode(@PathVariable("itemCode") String itemCode);
// }


// Path: FoodTrayService/src/main/java/com/github/joffryferrater/foodtrayservice/FoodTrayServiceApplication.java
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.context.annotation.ComponentScan;
import com.github.joffryferrater.foodtrayservice.repository.ItemServiceRepository;
import com.github.joffryferrater.foodtrayservice.repository.PriceServiceRepository;

package com.github.joffryferrater.foodtrayservice;



@SpringBootApplication
@EnableDiscoveryClient
@EnableCircuitBreaker
@EnableHystrixDashboard
@EnableHystrix
//@EnableFeignClients
@EnableFeignClients(basePackageClasses = {ItemServiceRepository.class, PriceServiceRepository.class})