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 -->

Advertisement

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 )

Facebook photo

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

Connecting to %s