springboot prototype设置多例不起做用的解决办法

大多数人会直接这样写:java @Bean @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE) public TestBean getTestBean() { return new TestBean(); } ConfigurableBeanFactory.SCOPE_PROTOTYPE的值就是prototypeweb 可是发现
相关文章
相关标签/搜索