tag:blogger.com,1999:blog-8374893302179723097.post6016193554580032798..comments2023-09-10T00:36:21.237+03:00Comments on Tha Blog ... care este ...: Spring 3.0 Framework - Spring Annotation Configuration of a Spring MVC Applicationvsorinelhttp://www.blogger.com/profile/04378445786060648663noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8374893302179723097.post-17481193620348460062012-08-03T12:50:10.438+03:002012-08-03T12:50:10.438+03:00ok... I will try to tell you in few words, as the ...ok... I will try to tell you in few words, as the annotations discussion may take a while... When using the automatic component scanning (in your application-context.xml Spring descriptor file), you will have to mark your classes at least with @Component Spring annotations; in this way, Spring will treat the class as a Spring bean; so, the @Component is the base annotation and the marked class may be ANY Spring component; to be more specific with its components, Spring invented this @Service annotation that practically extends the @Component and is oriented on business services. So, the @Service is dedicated only for the business services; there is also another annotation called @Repository, that will mark only the DAOs (when using the full tiers, ie: entities- for ORM database tables, dao - for JPA, or Hibernate, services - for access to DAO).vsorinelhttps://www.blogger.com/profile/04378445786060648663noreply@blogger.comtag:blogger.com,1999:blog-8374893302179723097.post-44245672019703826582012-07-12T17:11:40.090+03:002012-07-12T17:11:40.090+03:00what is purpose of @Service, please provide the de...what is purpose of @Service, please provide the detail info<br /><br />Diff between @Service and @component....please explain with spring container perspectiveAnonymousnoreply@blogger.com