Commit d45f6d0cab038be59069a1f4e93daa5ffc4c24a3
1 parent
05d526fb
1.zyl接口加入电量信息
Showing
1 changed file
with
5 additions
and
1 deletions
src/main/java/com/bsth/CXFConfig.java
| ... | ... | @@ -15,6 +15,7 @@ import com.bsth.server_rs.gps.GpsRestService; |
| 15 | 15 | import com.bsth.server_rs.schedule.SchedulePlanService; |
| 16 | 16 | import com.bsth.server_rs.schedule.ScheduleRealService; |
| 17 | 17 | import com.bsth.server_rs.schedule.ScheduleTimeService; |
| 18 | +import com.bsth.server_rs.schedule.WaybillService; | |
| 18 | 19 | import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider; |
| 19 | 20 | import org.apache.cxf.Bus; |
| 20 | 21 | import org.apache.cxf.bus.spring.SpringBus; |
| ... | ... | @@ -58,6 +59,8 @@ public class CXFConfig { |
| 58 | 59 | private CarparkRestService carparkRestService; |
| 59 | 60 | @Autowired |
| 60 | 61 | private ScheduleTimeService scheduleTimeService; |
| 62 | + @Autowired | |
| 63 | + private WaybillService waybillService; | |
| 61 | 64 | |
| 62 | 65 | @Bean |
| 63 | 66 | public Server rsServer() { |
| ... | ... | @@ -76,7 +79,8 @@ public class CXFConfig { |
| 76 | 79 | directiveRestService, |
| 77 | 80 | ld_roadSpeedRestService, |
| 78 | 81 | carparkRestService, |
| 79 | - scheduleTimeService)); | |
| 82 | + scheduleTimeService, | |
| 83 | + waybillService)); | |
| 80 | 84 | endpoint.setProviders(Arrays.asList(new JacksonJsonProvider(), new AesExceptionMapper())); |
| 81 | 85 | endpoint.getInInterceptors().add(new AuthorizeInterceptor_IN()); |
| 82 | 86 | return endpoint.create(); | ... | ... |