如何通过HibernateJpaConfiguration初始化多个数据源?

时间:2018-07-25 14:22:12

标签: java spring spring-boot spring-data

默认情况下,export default class MainLogo extends PureComponent { render() { return ( <svg width="500px" height="500px" viewBox="0 0 500 500" version="1.1"> <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd"> <path d="M389.95983 ...9" fill={this.props.Color} /> <path d="M303.504016,.9639279..." fill={this.props.otherColor} /> </g> </svg> ); } } MainLogo.defaultProps = { backgroundColor: "#fff" }; 仅在初始化单个HibernateJpaConfiguration时应用。 否?

DataSource

如果我创建了多个@Configuration @ConditionalOnSingleCandidate(DataSource.class) class HibernateJpaConfiguration extends JpaBaseConfiguration { } ,该怎么办?如何让它们仍然通过默认的休眠自动配置运行?

DataSources

0 个答案:

没有答案