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 2929import java .util .TreeMap ;
3030import java .util .UUID ;
3131
32+ import org .springframework .beans .factory .BeanClassLoaderAware ;
3233import org .springframework .context .ApplicationContext ;
3334import org .springframework .context .ApplicationContextAware ;
3435import org .springframework .core .CollectionFactory ;
@@ -819,6 +820,10 @@ public void setApplicationContext(ApplicationContext applicationContext) {
819820 if (entityCallbacks == null ) {
820821 setEntityCallbacks (EntityCallbacks .create (applicationContext ));
821822 }
823+ ClassLoader classLoader = applicationContext .getClassLoader ();
824+ if (this .typeMapper instanceof BeanClassLoaderAware && classLoader != null ) {
825+ ((BeanClassLoaderAware ) this .typeMapper ).setBeanClassLoader (classLoader );
826+ }
822827 }
823828
824829 /**
You can’t perform that action at this time.
0 commit comments