File tree 1 file changed +5
-0
lines changed
src/main/java/org/springframework/data/couchbase/core/convert
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 30
30
import java .util .TreeMap ;
31
31
import java .util .UUID ;
32
32
33
+ import org .springframework .beans .factory .BeanClassLoaderAware ;
33
34
import org .springframework .context .ApplicationContext ;
34
35
import org .springframework .context .ApplicationContextAware ;
35
36
import org .springframework .core .CollectionFactory ;
@@ -902,6 +903,10 @@ public void setApplicationContext(ApplicationContext applicationContext) {
902
903
if (entityCallbacks == null ) {
903
904
setEntityCallbacks (EntityCallbacks .create (applicationContext ));
904
905
}
906
+ ClassLoader classLoader = applicationContext .getClassLoader ();
907
+ if (this .typeMapper instanceof BeanClassLoaderAware && classLoader != null ) {
908
+ ((BeanClassLoaderAware ) this .typeMapper ).setBeanClassLoader (classLoader );
909
+ }
905
910
}
906
911
907
912
/**
You can’t perform that action at this time.
0 commit comments