File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/java/org/springframework/data/couchbase/core/convert Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 29
29
import java .util .TreeMap ;
30
30
import java .util .UUID ;
31
31
32
+ import org .springframework .beans .factory .BeanClassLoaderAware ;
32
33
import org .springframework .context .ApplicationContext ;
33
34
import org .springframework .context .ApplicationContextAware ;
34
35
import org .springframework .core .CollectionFactory ;
@@ -819,6 +820,10 @@ public void setApplicationContext(ApplicationContext applicationContext) {
819
820
if (entityCallbacks == null ) {
820
821
setEntityCallbacks (EntityCallbacks .create (applicationContext ));
821
822
}
823
+ ClassLoader classLoader = applicationContext .getClassLoader ();
824
+ if (this .typeMapper instanceof BeanClassLoaderAware && classLoader != null ) {
825
+ ((BeanClassLoaderAware ) this .typeMapper ).setBeanClassLoader (classLoader );
826
+ }
822
827
}
823
828
824
829
/**
You can’t perform that action at this time.
0 commit comments