1. Bean的作用域 Bean的作用域默认为单例模式。 2. 自动注入 3. 在spring配置文件中引入属性文件 Bean的作用域默认为单例模式。 转载于:https://www.cnblogs.com/mcl2238973568/p/11478426.html