Spring面向接口编程,如果你要改变PersonService所指向的bean(PersonServiceBean),只需要在配置文件中把class路径改变成你需要的bean(Pathof other serviceBean)的存在路径即可,后台代码不用更改!!
初学spring
最新推荐文章于 2025-01-12 22:52:25 发布
Spring面向接口编程,如果你要改变PersonService所指向的bean(PersonServiceBean),只需要在配置文件中把class路径改变成你需要的bean(Pathof other serviceBean)的存在路径即可,后台代码不用更改!!