配置多个数据库时Bean property 'targetDataSources' is not writable or has an invalid setter method
推荐回答
/applicationContextCars.xml 应该是这个配置文件中有地方没有配置对,或者是你没有配置的 恩,对,是那个样子的 [cars.service.CarsService]: Bean property 'dao' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? 这两句就可以看出来的。