on-internet
← Community

To use the default BatchConfigurer the context must contain no more thanone DataSource, found 2

Stack Overflow ·

I am using spring boot and spring batch. For meta table i want to use mysql and for all business thing i want to use db2 as a database.When i implemented getting error. application.properties spring.datasource.url = jdbc:mysql://localhost:3306/local spring.datasource.username = root spring.datasource.password = root spring.jpa.show-sql = true spring.jpa.hibernate.ddl-auto = update spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect spring.seconddatasource.url=jdbc:db2://*************** spring.seconddatasource.username=****** spring.seconddatasource.password=**** sprin

Comments

Sign in or sign up to comment and upvote.

No comments yet.