Blame view

src/main/java/com/objecteye/controller/LocalTestController.java 801 Bytes
c83b5b39   Liu Haoyu   项目创建, 集成spring-se...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  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();
      }
  }