Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

Somewhere I read Spring offers convenience over configuration. But Spring folks are bringing in so much changes over the configuration , that I am now really getting confused to use the xml configuration or the annotation.

I would like anyone to suggest a surefire methodology or rule of thumb in using xml and annotations.


Examples at SO to show that many beginners like me are getting confused over the configuration.

I don't seem to grasp the functionality behind <context:annotation-config> and <context:component-scan>.

From what I've read they seem to handle different annotations (@Required, @Autowired etc vs @Component, @Repository, @Service etc) but also from what I've read they register the same bean post processor classes.

To confuse me even more, there is an annotation-config attribute on <context:component-scan>...

I still have the component scan tag:

 <context:component-scan base-package="com.mycompany.maventestwebapp" /> 

but I have also another tag (that look like have similar task), this one:

 <annotation-driven /> 

What is the difference between these two tags? An other "strange" thing is that the previous example (that don't use the annotation-driven tag) is very similar to the project create by STS using the Spring MVC Template project but if I delete the annotation-driven tag from its configuration file the project don't run and give me the following error: HTTP Status 404 -...

Spring 3.2 no longer need cglib for proxying , but lower versions uses cglib. A quote from the springsource blog

In order to generate such proxies, Spring uses a third party library called cglib. Unfortunately, this project is not active anymore. In Spring 3.2, it is very likely that Spring will be using Javassist instead by default.

Are these enough to suggest that Spring is Confusion over configuration ?

Somewhere I read Spring offers convenience over configuration. But Spring folks are bringing in so much changes over the configuration , that I am now really getting confused to use the xml configuration or the annotation.

I would like anyone to suggest a surefire methodology or rule of thumb in using xml and annotations.


Examples at SO to show that many beginners like me are getting confused over the configuration.

I don't seem to grasp the functionality behind <context:annotation-config> and <context:component-scan>.

From what I've read they seem to handle different annotations (@Required, @Autowired etc vs @Component, @Repository, @Service etc) but also from what I've read they register the same bean post processor classes.

To confuse me even more, there is an annotation-config attribute on <context:component-scan>...

I still have the component scan tag:

 <context:component-scan base-package="com.mycompany.maventestwebapp" /> 

but I have also another tag (that look like have similar task), this one:

 <annotation-driven /> 

What is the difference between these two tags? An other "strange" thing is that the previous example (that don't use the annotation-driven tag) is very similar to the project create by STS using the Spring MVC Template project but if I delete the annotation-driven tag from its configuration file the project don't run and give me the following error: HTTP Status 404 -...

Spring 3.2 no longer need cglib for proxying , but lower versions uses cglib. A quote from the springsource blog

In order to generate such proxies, Spring uses a third party library called cglib. Unfortunately, this project is not active anymore. In Spring 3.2, it is very likely that Spring will be using Javassist instead by default.

Are these enough to suggest that Spring is Confusion over configuration ?

Somewhere I read Spring offers convenience over configuration. But Spring folks are bringing in so much changes over the configuration , that I am now really getting confused to use the xml configuration or the annotation.

I would like anyone to suggest a surefire methodology or rule of thumb in using xml and annotations.


Examples at SO to show that many beginners like me are getting confused over the configuration.

I don't seem to grasp the functionality behind <context:annotation-config> and <context:component-scan>.

From what I've read they seem to handle different annotations (@Required, @Autowired etc vs @Component, @Repository, @Service etc) but also from what I've read they register the same bean post processor classes.

To confuse me even more, there is an annotation-config attribute on <context:component-scan>...

I still have the component scan tag:

 <context:component-scan base-package="com.mycompany.maventestwebapp" /> 

but I have also another tag (that look like have similar task), this one:

 <annotation-driven /> 

What is the difference between these two tags? An other "strange" thing is that the previous example (that don't use the annotation-driven tag) is very similar to the project create by STS using the Spring MVC Template project but if I delete the annotation-driven tag from its configuration file the project don't run and give me the following error: HTTP Status 404 -...

Spring 3.2 no longer need cglib for proxying , but lower versions uses cglib. A quote from the springsource blog

In order to generate such proxies, Spring uses a third party library called cglib. Unfortunately, this project is not active anymore. In Spring 3.2, it is very likely that Spring will be using Javassist instead by default.

Are these enough to suggest that Spring is Confusion over configuration ?

Post Reopened by Yusubov, gnat, thorsten müller, CommunityBot, psr
deleted 3 characters in body
Source Link
user65878
user65878

Somewhere I read Spring offers convenience over configuration. But Spring folks are bringing in so much changes over the configuration , that I am now really getting confused to use the xml configuration or the annotation. Is there any clear cut way

I would like anyone to follow these releasessuggest a surefire methodology or rule of thumb in using xml and not get confused what configuration to use where ?annotations.


Examples at SO to show that many beginners like me are getting confused over the configuration.

I don't seem to grasp the functionality behind <context:annotation-config> and <context:component-scan>.

From what I've read they seem to handle different annotations (@Required, @Autowired etc vs @Component, @Repository, @Service etc) but also from what I've read they register the same bean post processor classes.

To confuse me even more, there is an annotation-config attribute on <context:component-scan>...

I still have the component scan tag:

 <context:component-scan base-package="com.mycompany.maventestwebapp" /> 

but I have also another tag (that look like have similar task), this one:

 <annotation-driven /> 

What is the difference between these two tags? An other "strange" thing is that the previous example (that don't use the annotation-driven tag) is very similar to the project create by STS using the Spring MVC Template project but if I delete the annotation-driven tag from its configuration file the project don't run and give me the following error: HTTP Status 404 -...

Spring 3.2 no longer need cglib for proxying , but lower versions uses cglib. A quote from the springsource blog

In order to generate such proxies, Spring uses a third party library called cglib. Unfortunately, this project is not active anymore. In Spring 3.2, it is very likely that Spring will be using Javassist instead by default.

Are these enough to suggest that Spring is Confusion over configuration ?

Somewhere I read Spring offers convenience over configuration. But Spring folks are bringing in so much changes over the configuration , that I am now really getting confused to use the xml configuration or the annotation. Is there any clear cut way to follow these releases and not get confused what configuration to use where ?


Examples at SO to show that many beginners like me are getting confused over the configuration.

I don't seem to grasp the functionality behind <context:annotation-config> and <context:component-scan>.

From what I've read they seem to handle different annotations (@Required, @Autowired etc vs @Component, @Repository, @Service etc) but also from what I've read they register the same bean post processor classes.

To confuse me even more, there is an annotation-config attribute on <context:component-scan>...

I still have the component scan tag:

 <context:component-scan base-package="com.mycompany.maventestwebapp" /> 

but I have also another tag (that look like have similar task), this one:

 <annotation-driven /> 

What is the difference between these two tags? An other "strange" thing is that the previous example (that don't use the annotation-driven tag) is very similar to the project create by STS using the Spring MVC Template project but if I delete the annotation-driven tag from its configuration file the project don't run and give me the following error: HTTP Status 404 -...

Spring 3.2 no longer need cglib for proxying , but lower versions uses cglib. A quote from the springsource blog

In order to generate such proxies, Spring uses a third party library called cglib. Unfortunately, this project is not active anymore. In Spring 3.2, it is very likely that Spring will be using Javassist instead by default.

Are these enough to suggest that Spring is Confusion over configuration ?

Somewhere I read Spring offers convenience over configuration. But Spring folks are bringing in so much changes over the configuration , that I am now really getting confused to use the xml configuration or the annotation.

I would like anyone to suggest a surefire methodology or rule of thumb in using xml and annotations.


Examples at SO to show that many beginners like me are getting confused over the configuration.

I don't seem to grasp the functionality behind <context:annotation-config> and <context:component-scan>.

From what I've read they seem to handle different annotations (@Required, @Autowired etc vs @Component, @Repository, @Service etc) but also from what I've read they register the same bean post processor classes.

To confuse me even more, there is an annotation-config attribute on <context:component-scan>...

I still have the component scan tag:

 <context:component-scan base-package="com.mycompany.maventestwebapp" /> 

but I have also another tag (that look like have similar task), this one:

 <annotation-driven /> 

What is the difference between these two tags? An other "strange" thing is that the previous example (that don't use the annotation-driven tag) is very similar to the project create by STS using the Spring MVC Template project but if I delete the annotation-driven tag from its configuration file the project don't run and give me the following error: HTTP Status 404 -...

Spring 3.2 no longer need cglib for proxying , but lower versions uses cglib. A quote from the springsource blog

In order to generate such proxies, Spring uses a third party library called cglib. Unfortunately, this project is not active anymore. In Spring 3.2, it is very likely that Spring will be using Javassist instead by default.

Are these enough to suggest that Spring is Confusion over configuration ?

added 430 characters in body
Source Link
user65878
user65878

Somewhere I read Spring offers convenience over configuration. But Spring folks are bringing in so much changes over the configuration , that I am now really getting confused to use the xml configuration or the annotation. Is there any clear cut way to follow these releases and not get confused what configuration to use where ?


Examples at SO to show that many beginners like me are getting confused over the configuration.

I don't seem to grasp the functionality behind <context:annotation-config> and <context:component-scan>.

From what I've read they seem to handle different annotations (@Required, @Autowired etc vs @Component, @Repository, @Service etc) but also from what I've read they register the same bean post processor classes.

To confuse me even more, there is an annotation-config attribute on <context:component-scan>...

I still have the component scan tag:

 <context:component-scan base-package="com.mycompany.maventestwebapp" /> 

but I have also another tag (that look like have similar task), this one:

 <annotation-driven /> 

What is the difference between these two tags? An other "strange" thing is that the previous example (that don't use the annotation-driven tag) is very similar to the project create by STS using the Spring MVC Template project but if I delete the annotation-driven tag from its configuration file the project don't run and give me the following error: HTTP Status 404 -...

Spring 3.2 no longer need cglib for proxying , but lower versions uses cglib. A quote from the springsource blog

In order to generate such proxies, Spring uses a third party library called cglib. Unfortunately, this project is not active anymore. In Spring 3.2, it is very likely that Spring will be using Javassist instead by default.

Are these enough to suggest that Spring is Confusion over configuration ?

Somewhere I read Spring offers convenience over configuration. But Spring folks are bringing in so much changes over the configuration , that I am now really getting confused to use the xml configuration or the annotation. Is there any clear cut way to follow these releases and not get confused what configuration to use where ?


Examples at SO to show that many beginners like me are getting confused over the configuration.

I don't seem to grasp the functionality behind <context:annotation-config> and <context:component-scan>.

From what I've read they seem to handle different annotations (@Required, @Autowired etc vs @Component, @Repository, @Service etc) but also from what I've read they register the same bean post processor classes.

To confuse me even more, there is an annotation-config attribute on <context:component-scan>...

I still have the component scan tag:

 <context:component-scan base-package="com.mycompany.maventestwebapp" /> 

but I have also another tag (that look like have similar task), this one:

 <annotation-driven /> 

What is the difference between these two tags? An other "strange" thing is that the previous example (that don't use the annotation-driven tag) is very similar to the project create by STS using the Spring MVC Template project but if I delete the annotation-driven tag from its configuration file the project don't run and give me the following error: HTTP Status 404 -...

Somewhere I read Spring offers convenience over configuration. But Spring folks are bringing in so much changes over the configuration , that I am now really getting confused to use the xml configuration or the annotation. Is there any clear cut way to follow these releases and not get confused what configuration to use where ?


Examples at SO to show that many beginners like me are getting confused over the configuration.

I don't seem to grasp the functionality behind <context:annotation-config> and <context:component-scan>.

From what I've read they seem to handle different annotations (@Required, @Autowired etc vs @Component, @Repository, @Service etc) but also from what I've read they register the same bean post processor classes.

To confuse me even more, there is an annotation-config attribute on <context:component-scan>...

I still have the component scan tag:

 <context:component-scan base-package="com.mycompany.maventestwebapp" /> 

but I have also another tag (that look like have similar task), this one:

 <annotation-driven /> 

What is the difference between these two tags? An other "strange" thing is that the previous example (that don't use the annotation-driven tag) is very similar to the project create by STS using the Spring MVC Template project but if I delete the annotation-driven tag from its configuration file the project don't run and give me the following error: HTTP Status 404 -...

Spring 3.2 no longer need cglib for proxying , but lower versions uses cglib. A quote from the springsource blog

In order to generate such proxies, Spring uses a third party library called cglib. Unfortunately, this project is not active anymore. In Spring 3.2, it is very likely that Spring will be using Javassist instead by default.

Are these enough to suggest that Spring is Confusion over configuration ?

Post Closed as "exact duplicate" by gnat, Martijn Pieters, Yusubov, CommunityBot, Bart van Ingen Schenau
quotes from referenced links
Source Link
gnat
  • 20.5k
  • 29
  • 117
  • 310
Loading
added more content
Source Link
user65878
user65878
Loading
Source Link
user65878
user65878
Loading