Spring bean destroy-method , singleton and prototype scopes

后端 未结 6 1361
暗喜
暗喜 2020-12-31 00:34

I am new to the spring framework, started with some tutorials to learn it.

I have following files,

# MainProgram.java

package test.spring;
im         


        
6条回答
  •  臣服心动
    2020-12-31 00:59

    Please check your scope type in your spring configuration file. If scope="prototype" then change it to scope="singleton"

    
    
    

提交回复
热议问题