I want to create custom rest api in alfresco.
How can i do that?
I have made following configuration.but it is not working.
<context:component-scan base-package="com.controller"></context:component-scan>
package com.tritex.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
@RequestMapping(value = "/contract")
public class TestController {
@RequestMapping(value = "/test", method = RequestMethod.GET)
public String display() {
return "Hello World";
}
}