We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@bean @ConditionalOnMissingBean public SqlSessionFactory sqlSessionFactory(DataSource dataSource) throws Exception { SqlSessionFactoryBean factory = new SqlSessionFactoryBean(); factory.setDataSource(dataSource); if (StringUtils.hasText(this.properties.getConfig())) { factory.setConfigLocation( this.resourceLoader.getResource(this.properties.getConfig())); } if (StringUtils.hasText(this.properties.getTypeAliasesPackage())) factory.setTypeAliasesPackage(this.properties.getTypeAliasesPackage()); if (StringUtils.hasText(this.properties.getTypeHandlersPackage())) factory.setTypeHandlersPackage(this.properties.getTypeHandlersPackage()); if (this.properties.getMapperLocations()!=null && this.properties.getMapperLocations().length>0) factory.setMapperLocations(this.properties.getMapperLocations()); return factory.getObject(); }
The text was updated successfully, but these errors were encountered:
Sorry we need some text to understand the issue. Please as for a reopen if needed.
Sorry, something went wrong.
No branches or pull requests
@bean
@ConditionalOnMissingBean
public SqlSessionFactory sqlSessionFactory(DataSource dataSource) throws Exception {
SqlSessionFactoryBean factory = new SqlSessionFactoryBean();
factory.setDataSource(dataSource);
if (StringUtils.hasText(this.properties.getConfig())) {
factory.setConfigLocation(
this.resourceLoader.getResource(this.properties.getConfig()));
}
if (StringUtils.hasText(this.properties.getTypeAliasesPackage()))
factory.setTypeAliasesPackage(this.properties.getTypeAliasesPackage());
if (StringUtils.hasText(this.properties.getTypeHandlersPackage()))
factory.setTypeHandlersPackage(this.properties.getTypeHandlersPackage());
if (this.properties.getMapperLocations()!=null && this.properties.getMapperLocations().length>0)
factory.setMapperLocations(this.properties.getMapperLocations());
return factory.getObject();
}
The text was updated successfully, but these errors were encountered: