Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
During this video, I'll give you an overview of what each part of the Spring Framework offers to us for developing web apps.
JavaBeans vs. Spring Beans
Spring beans typically adhere to the requirements of the JavaBean specification. Independent of Spring, a JavaBean is any object that meets the following requirements:
- has a public, default constructor,
- has fields that are accessed through public getters & setters, which follow the standard naming convention of getFieldName (or isFieldName for boolean fields) and setFieldName, and
- implements
java.io.Serializable
.
In general, Spring beans follow this convention, except that Spring beans do not need to implement java.io.Serializable
.
In general, Spring beans are any object constructed and managed by the Spring Framework. Spring beans are the objects eligible for injection with the @Autowired
annotation, as you'll see later in the course.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up