spring注解模式中,如何把一个对象放到容器中?

 写一个普通方法,返回值是该对象类型,最后在方法上写上注解@Bean

猜你喜欢

转载自www.cnblogs.com/beyond7788/p/12619760.html