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 3030import java .util .TreeMap ;
3131import java .util .UUID ;
3232
33+ import org .springframework .beans .factory .BeanClassLoaderAware ;
3334import org .springframework .context .ApplicationContext ;
3435import org .springframework .context .ApplicationContextAware ;
3536import org .springframework .core .CollectionFactory ;
@@ -902,6 +903,10 @@ public void setApplicationContext(ApplicationContext applicationContext) {
902903 if (entityCallbacks == null ) {
903904 setEntityCallbacks (EntityCallbacks .create (applicationContext ));
904905 }
906+ ClassLoader classLoader = applicationContext .getClassLoader ();
907+ if (this .typeMapper instanceof BeanClassLoaderAware && classLoader != null ) {
908+ ((BeanClassLoaderAware ) this .typeMapper ).setBeanClassLoader (classLoader );
909+ }
905910 }
906911
907912 /**
You can’t perform that action at this time.
0 commit comments