写一个普通方法,返回值是该对象类型,最后在方法上写上注解@Bean
spring注解模式中,如何把一个对象放到容器中?
猜你喜欢
转载自www.cnblogs.com/beyond7788/p/12619760.html
今日推荐
周排行