LocalTestController.java
801 Bytes
package com.objecteye.controller;
import com.objecteye.service.ILocalTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/localTest")
@CrossOrigin
public class LocalTestController {
@Autowired
private ILocalTestService iLocalTestService;
@RequestMapping(value = "/mongoToRedisVehicleFeature", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public void mongoToRedisVehicleFeature() {
iLocalTestService.mongoToRedisVehicleFeature();
}
}