Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

spring code

 
Andrew Cane
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I wish to learn more about how SPring works behind the scene. What does spring do to every class and methods annotated with @Controller and @RequestMapping. Does spring modify the code on the fly? Which class should I start? thanks
 
Surendra Kumar
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That should be similar to Java annotations that started from Java 5 version.
Those are processed by compiler plugins and other tools.
It's a language feature.
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Andrew Cane wrote:Does spring modify the code on the fly?


No, at least not for the things you mentioned. Aspects can add behavior based on an annotations, however typically this is done at compile time.

The question you ask could have a really long answer. If you are curious how things work internally Spring is open source. You are free to look through the source code.



 
Andrew Cane
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which class should I look first? I want to focus on how @controller and @requestmapping works for now. thanks
 
Jayesh A Lalwani
Rancher
Posts: 2756
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would start with a good book. I liked Spring in action myself
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic