In Spring, I have a controller "BaseController" and have a reference for service class as
@Controller
class BaseController{
@Autowired
private BaseService baseService;
//......
}
and bean definition in xml as
<context:annotation-config />
<bean name="baseService" class="com.test.service.BaseService" />
Here i'm not using the "autowire" attribute and so not defining the autowire type as either "byType" or "byName".
So now what type of autowiring happens.