A JavaBean is just a standard
All properties private (use getters/setters)
A public no-argument constructor
Implements Serializable.
@Configuration
@ComponentScan(basePackageClasses = Company.class)
public class Config {
@Bean
public Address getAddress() {
return new Address("High Street", 1000);
}
}