spring mvc - which annotations comes under ? -
Does it scan for controller, service, daO, autowire annotation? What is the impact on request mapping, responibody, and other hibernate annotation line id, table etc. If I am not using any controller, service, doo, autoinver annotation in my project and using only request mapping, responibody and hibernate-annotation then it is necessary to sender xml or not.
For your scenario, there is no answer. This sample is because you do not add any spring annotation to the class, it means that beans are not managed by spring. So spring can not do anything on it, it is similar to hibernate annotation.
For further reference: Component-scan, I advise you to open a reference schema: It is a description of it. Also note that for all types of configurations, please open the schema and Check the details, it is very clear.
Comments
Post a Comment