Specify separate datasource for Activiti in a Spring Boot app
问题 How would I use two separate dataSources in my Spring Boot application? I would like one dataSource to be used by my application, to be used for persisting my models and a separate dataSource for use by the Activiti engine, so it can keep it's entities in a separate database. As of now Activiti's tables and my app's tables are created in the same database. [Edited]: I know I can define two separate DataSource beans like: @Bean public DataSource appDataSource() { BasicDataSource dataSource =