From 7924b7d5f95d38b0022e0fdfcab37639c84c88fb Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 12 Dec 2016 22:49:10 +0300 Subject: @Controller + @ResponseBody = @RestController --- .../java/com/juick/components/controllers/StatusController.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'juick-xmpp-ft/src/main/java') diff --git a/juick-xmpp-ft/src/main/java/com/juick/components/controllers/StatusController.java b/juick-xmpp-ft/src/main/java/com/juick/components/controllers/StatusController.java index 6d82054a..c89c1cfe 100644 --- a/juick-xmpp-ft/src/main/java/com/juick/components/controllers/StatusController.java +++ b/juick-xmpp-ft/src/main/java/com/juick/components/controllers/StatusController.java @@ -3,18 +3,16 @@ package com.juick.components.controllers; import com.juick.components.XMPPFTServer; import com.juick.server.helpers.Status; 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.ResponseBody; +import org.springframework.web.bind.annotation.RestController; import javax.inject.Inject; /** * Created by vitalyster on 24.10.2016. */ -@Controller -@ResponseBody +@RestController public class StatusController { @Inject XMPPFTServer xmpp; -- cgit v1.2.3