Skip to content

Commit e5f7aec

Browse files
committed
[test] Update propertyplaceholderconfigurer to propertysourcesplaceholderconfigurer
1 parent 4cb0ae1 commit e5f7aec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/mybatis/spring/mapper/MapperScannerConfigurerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
4141
import org.springframework.beans.factory.config.BeanDefinition;
4242
import org.springframework.beans.factory.config.ConstructorArgumentValues;
43-
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
4443
import org.springframework.beans.factory.config.RuntimeBeanReference;
4544
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
4645
import org.springframework.beans.factory.support.GenericBeanDefinition;
4746
import org.springframework.context.support.GenericApplicationContext;
47+
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
4848
import org.springframework.context.support.SimpleThreadScope;
4949
import org.springframework.core.env.MutablePropertySources;
5050
import org.springframework.mock.env.MockPropertySource;
@@ -305,7 +305,7 @@ void testScanWithExplicitSqlSessionFactoryViaPlaceholder() {
305305
props.put("sqlSessionFactoryBeanNameProperty", "sqlSessionFactory2");
306306

307307
GenericBeanDefinition propertyDefinition = new GenericBeanDefinition();
308-
propertyDefinition.setBeanClass(PropertyPlaceholderConfigurer.class);
308+
propertyDefinition.setBeanClass(PropertySourcesPlaceholderConfigurer.class);
309309
propertyDefinition.getPropertyValues().add("properties", props);
310310

311311
applicationContext.registerBeanDefinition("propertiesPlaceholder", propertyDefinition);
@@ -355,7 +355,7 @@ void testScanWithPropertyPlaceholders() {
355355
props.put("mybatis.lazy-initialization", "true");
356356

357357
GenericBeanDefinition propertyDefinition = new GenericBeanDefinition();
358-
propertyDefinition.setBeanClass(PropertyPlaceholderConfigurer.class);
358+
propertyDefinition.setBeanClass(PropertySourcesPlaceholderConfigurer.class);
359359
propertyDefinition.getPropertyValues().add("properties", props);
360360

361361
applicationContext.registerBeanDefinition("propertiesPlaceholder", propertyDefinition);

0 commit comments

Comments
 (0)