Hello,
I got Magnolia + Blossom running, but I'm missing the documentation on how to
implement simple spring service with that. All I want to do is for Magnolia to
answer with current datetime on GET "/ping". The pure Spring implementation
would look something like following:
[code]import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.Date;
@Controller
public class PingController {
@RequestMapping(value = "/ping")
@ResponseBody
public String ping() {
return new Date().toString();
}
}[/code]
It doesn't work as magnolia ignores the request mappings that I used here. What
is the right way to get this working?
Thank you and best regards
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=8036b673-2262-4b73-bee1-707750fe6e78
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------