|
@@ -1,22 +1,23 @@
|
|
-package com.css.simulation.resource.demo.ctrl;
|
|
|
|
|
|
+package com.css.simulation.resource.common.demo.ctrl;
|
|
|
|
|
|
import api.common.pojo.common.ResponseBodyVO;
|
|
import api.common.pojo.common.ResponseBodyVO;
|
|
import api.common.pojo.param.demo.TestPageParam;
|
|
import api.common.pojo.param.demo.TestPageParam;
|
|
import api.common.pojo.vo.demo.TestVO;
|
|
import api.common.pojo.vo.demo.TestVO;
|
|
-import com.css.simulation.resource.demo.service.TestService;
|
|
|
|
|
|
+import com.css.simulation.resource.common.demo.service.TestService;
|
|
import com.github.pagehelper.PageInfo;
|
|
import com.github.pagehelper.PageInfo;
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
|
+
|
|
@Controller
|
|
@Controller
|
|
@RequestMapping("/test")
|
|
@RequestMapping("/test")
|
|
public class TestCtrl {
|
|
public class TestCtrl {
|
|
|
|
|
|
- @Autowired
|
|
|
|
- TestService testService;
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ private TestService testService;
|
|
|
|
|
|
@RequestMapping("/getTestPageList")
|
|
@RequestMapping("/getTestPageList")
|
|
@ResponseBody
|
|
@ResponseBody
|