问题描述
我正在开发一个 Spring Boot 应用程序,具有以下技术堆栈、spring MVC、服务和 JPA。 数据库是 Postgres。在 application.properties 中,我使用了以下属性,
spring.datasource.url=jdbc:postgresql:appleapptest1
spring.datasource.username=appleapptest1
spring.datasource.password=appleapptest1
spring.datasource.driver-class-name=org.postgresql.Driver
现在我需要在具有数据库持久性的 Spring Boot 中使用 Quartz 调度程序。我必须使用不同的数据源。如何实现相同。我在 JPA 中使用了第一个数据源,在 Quartz bean 中使用了第二个数据源。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)