I created a spring bean in a configuration class like this:
@Bean
MyClass getMyClass() {
MyClass mc = new MyClass()
return mc;
}
Whenever MyClass is autowired in another class that needs it injected, will it always create a new object by virtue of new in bean definition?
Is a bean created this way a real singleton ?
