I have Spring Rest controller[HomeController] and it's working fine as individual war. I converted this Rest controller[HomeController] into Jar and added into another web project[TestWeb] under lib folder. I am trying to call my Rest controller[HomeController] from web project[TestWeb]. But it couldn't find the request mapping and throws 404. In my TestWeb project i have
<context:component-scan base-package="com.test.home.controller" />
And i tried to mapping directly using below code, but getting the same error
<context:component-scan base-package="com.test.home.controller.HomeController" />
Can you please help me if i missed anything?.
Thanks Saravanan