1 Spring Boot多數據源配置參考博客
https://www.cnblogs.com/756623607-zhang/p/11908621.html
2 參考上面的博客,關鍵的類修改截圖
pom.xml
<dependency>
<groupId>io.prestosql</groupId>
<artifactId>presto-jdbc</artifactId>
<version>330</version>
</dependency>
yml文件添加datasource信息
presto:
jdbc-url: jdbc:presto://hdp:9088/system/runtime?user=root
driver-class-name: com.facebook.presto.jdbc.PrestoDriver
DataSourceConfig添加presto配置

常量類

使用時加注解

測試驗證


