diff options
author | 2016-12-12 22:49:10 +0300 | |
---|---|---|
committer | 2016-12-12 22:49:48 +0300 | |
commit | 7924b7d5f95d38b0022e0fdfcab37639c84c88fb (patch) | |
tree | 8dae5e05088f048aefd82e9f03ce47d371616156 /juick-api/src/main/java/com/juick/api/controllers/Tags.java | |
parent | bc756f16b774bb9363b777e9071e17328afb27d6 (diff) |
@Controller + @ResponseBody = @RestController
Diffstat (limited to 'juick-api/src/main/java/com/juick/api/controllers/Tags.java')
-rw-r--r-- | juick-api/src/main/java/com/juick/api/controllers/Tags.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/juick-api/src/main/java/com/juick/api/controllers/Tags.java b/juick-api/src/main/java/com/juick/api/controllers/Tags.java index bc412456..7b1ce313 100644 --- a/juick-api/src/main/java/com/juick/api/controllers/Tags.java +++ b/juick-api/src/main/java/com/juick/api/controllers/Tags.java @@ -6,11 +6,10 @@ import com.juick.service.TagService; import com.juick.service.UserService; import com.juick.util.UserUtils; import org.springframework.http.MediaType; -import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.bind.annotation.RestController; import javax.inject.Inject; import java.util.List; @@ -18,8 +17,7 @@ import java.util.List; /** * Created by vitalyster on 29.11.2016. */ -@Controller -@ResponseBody +@RestController public class Tags { @Inject UserService userService; |