Spring Configuration Methods


  1. XML based config file
  2. Annotation-based configuration
  3. Java-based configuration

XML based config file

<!--?xml version="1.0" encoding="UTF-8"?-->

<!-- A simple bean definition -->

<!-- collaborators and configuration for this bean go here -->

<!-- A bean definition with lazy init set on -->

<!-- collaborators and configuration for this bean go here -->

<!-- A bean definition with initialization method -->

<!-- collaborators and configuration for this bean go here -->

<!-- A bean definition with destruction method -->

<!-- collaborators and configuration for this bean go here -->

<!-- more bean definitions go here -->

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Up ↑

%d bloggers like this: