|
|
@@ -3,10 +3,10 @@ package com.goafanti.app.controller;
|
|
|
import java.lang.reflect.InvocationTargetException;
|
|
|
import java.util.List;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
@@ -31,11 +31,11 @@ import com.goafanti.user.service.UserService;
|
|
|
@RestController
|
|
|
@RequestMapping(path = "/api/user/app", method = RequestMethod.GET)
|
|
|
public class AppApiController extends BaseApiController {
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private UserService userServiceImpl;
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private MessageService messageServiceImpl;
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private EasemobUtils easemobUtils;
|
|
|
@RequestMapping(value = "/uploadImg",method = RequestMethod.POST)
|
|
|
public Result uploadAvatar(HttpServletRequest req){
|