0

I have two packages holding spring controllers,I am not able to give actual names and packages.

com.test.controller------ABCController
com.test.xyz.controller------xyzController

I defined <context:component-scan base-package="com.test"/> in spring xml file,Spring able to find out controllers from com.test.controller,XYZController never called from spring container.it is saying no handler found.If i move xyzcontroller under package com.test.controller,then it's start working.

Please give any hints,why XYZController not working.

Thanks,

Raj

1 Answer 1

2

Use <context:component-scan base-package="com.test.**"/> in your spring config, so it will scan for every annotated class in all subpackages of com.test.

Sign up to request clarification or add additional context in comments.

1 Comment

It is saying /test.html handler not found.If i place same class under com.test.controller,It is working fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.