@Configuration(proxyBeanMethods=false) public class MyBatisJdbcConfiguration extends AbstractJdbcConfiguration
MyBatisDataAccessStrategy
instead of the default one.Constructor and Description |
---|
MyBatisJdbcConfiguration() |
Modifier and Type | Method and Description |
---|---|
DataAccessStrategy |
dataAccessStrategyBean(NamedParameterJdbcOperations operations,
JdbcConverter jdbcConverter,
JdbcMappingContext context,
Dialect dialect)
|
jdbcAggregateTemplate, jdbcConverter, jdbcCustomConversions, jdbcMappingContext
@Bean public DataAccessStrategy dataAccessStrategyBean(NamedParameterJdbcOperations operations, JdbcConverter jdbcConverter, JdbcMappingContext context, Dialect dialect)
AbstractJdbcConfiguration
DataAccessStrategy
for reuse in the JdbcAggregateOperations
and the JdbcConverter
.
Override this method to register a bean of type DataAccessStrategy
if your use case requires a more
specialized DataAccessStrategy
.dataAccessStrategyBean
in class AbstractJdbcConfiguration
Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.