공식 홈페이지: https://maven.apache.org/



[pom.xml](https://prod-files-secure.s3.us-west-2.amazonaws.com/f88884fd-7f36-4783-83a6-4917dcb35046/ff0a6dc3-34bd-4f91-927f-5aac1525d658/pom.xml)
public class RequestControllerMapping {
private static final Map<RequestMap, Controller> mapping = new HashMap<>() ;
//rest api 컨트롤러는 /api로 시작하도록 함
public static void init() {
//기존 통신 컨트롤러 - 화면 보여주기
mapping.put(new RequestMap("/products","GET"), new ProductsController());
mapping.put(new RequestMap("/buys","GET"), new BuysController());
//비동기 통신을 위한 api 제공 컨트롤러
mapping.put(new RequestMap("/api/customer/list","GET"),new ApiCustomerListController());
mapping.put(new RequestMap("/api/customer","POST"),new ApiCustomerPostController());
mapping.put(new RequestMap("/api/customer","GET"),new ApiCustomerGetController());
mapping.put(new RequestMap("/api/product/list","GET"),new ApiProductListController());
mapping.put(new RequestMap("/api/product","POST"),new ApiProductPostController());
mapping.put(new RequestMap("/api/buy/list","GET"),new ApiBuyListController());
}
public static Controller getController(RequestMap key) {
return mapping.get(key);}} //value에 해당하는 controller 객체 리턴
REST API
REST API(REpressentational State Transfer)
구성

노란색으로 그어진 해당 부분 주소는 개발자가 임의대로 지정한 값