Commit 48e7d70c6ed773125fd21e5e64633c9a240795d9

Authored by 王通
1 parent 62e77b5e

1.加入停车场、发车信息接口

src/main/java/com/bsth/server_rs/departure/DepartureRestService.java
1 package com.bsth.server_rs.departure; 1 package com.bsth.server_rs.departure;
2 2
3 import com.bsth.server_rs.departure.buffer.DepartureBufferData; 3 import com.bsth.server_rs.departure.buffer.DepartureBufferData;
  4 +import org.springframework.stereotype.Component;
4 5
5 import javax.ws.rs.GET; 6 import javax.ws.rs.GET;
6 import javax.ws.rs.Path; 7 import javax.ws.rs.Path;
@@ -12,6 +13,7 @@ import java.util.List; @@ -12,6 +13,7 @@ import java.util.List;
12 /** 13 /**
13 * @author hill 14 * @author hill
14 */ 15 */
  16 +@Component
15 @Path("/departure") 17 @Path("/departure")
16 @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML}) 18 @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
17 public class DepartureRestService { 19 public class DepartureRestService {