Spring Framework
Spring Framework
Advantages:
1. Modular and lightweight: allowing developers to use only the components
they need, making applications more lightweight and easier to maintain.
6. Testing Support
7. Security
POJO class: (Plain Old Java Object Class): A Simple java class with fields and
getters/setters method, used for data representation without framework
dependencies.
JavaBean class: A Serializable class, with no argument constructor, often used
to encapsulate data.
For Ex:
class Student
{
private String name;
private int rollno;
//getter & setter methods
}
According to configurations Spring Container will read respected POJO class and
create and access of object of class.
Example:
Steps:1
1. Create new java project in eclipse.(File->New->project->java project)
2. Give name a SpringProgram1
3. Untick create-module info java file
4. Click on next
5. Click finish
6. Click on src->new->class
7. Give name as student and enter package name as in.mitwpu.beans
</bean>
Spring Container will create one Object of Student class and name is
stdId
After creation of object, properties/variables of class will occupy
memory.