Spring中getbean的使用方式 非注解开发形式: 若某一个类型的bean有多个,则使用对应于== id ==号 太简单,不给例子了。 若bean中某一个类型的bean只有一个,则使用==.class==