Polishing
This commit is contained in:
parent
edbc54fe78
commit
9c1c787ee9
|
|
@ -310,6 +310,7 @@ public class HibernateTransactionManager extends AbstractPlatformTransactionMana
|
|||
* <p>This enables convenient customizations for application purposes, e.g.
|
||||
* setting Hibernate filters.
|
||||
* @since 5.3
|
||||
* @see Session#enableFilter
|
||||
*/
|
||||
public void setSessionInitializer(Consumer<Session> sessionInitializer) {
|
||||
this.sessionInitializer = sessionInitializer;
|
||||
|
|
@ -478,7 +479,7 @@ public class HibernateTransactionManager extends AbstractPlatformTransactionMana
|
|||
obtainSessionFactory().withOptions().interceptor(entityInterceptor).openSession() :
|
||||
obtainSessionFactory().openSession());
|
||||
if (this.sessionInitializer != null) {
|
||||
this.sessionInitializer.accept(session);
|
||||
this.sessionInitializer.accept(newSession);
|
||||
}
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Opened new Session [" + newSession + "] for Hibernate transaction");
|
||||
|
|
|
|||
|
|
@ -57,8 +57,9 @@ final class DefaultWebClientBuilder implements WebClient.Builder {
|
|||
ClassLoader loader = DefaultWebClientBuilder.class.getClassLoader();
|
||||
reactorClientPresent = ClassUtils.isPresent("reactor.netty.http.client.HttpClient", loader);
|
||||
jettyClientPresent = ClassUtils.isPresent("org.eclipse.jetty.client.HttpClient", loader);
|
||||
httpComponentsClientPresent = ClassUtils.isPresent("org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient", loader)
|
||||
&& ClassUtils.isPresent("org.apache.hc.core5.reactive.ReactiveDataConsumer", loader);
|
||||
httpComponentsClientPresent =
|
||||
ClassUtils.isPresent("org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient", loader) &&
|
||||
ClassUtils.isPresent("org.apache.hc.core5.reactive.ReactiveDataConsumer", loader);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue