spring配置bean标签默认为单例模式(scope=“singleton”),设置非单例模式为scope=“prototype”。
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation
spring配置bean标签默认为单例模式(scope=“singleton”),设置非单例模式为scope=“prototype”。
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation