引入hive-jdbc之后,测试环境没问题,线上发布报错
SpringBoot java.lang.NoClassDefFoundError: org/eclipse/jetty/server/RequestLog$Writer
查询资料后发现应该是引入hive-jdbc的依赖里面带进了jetty-all的依赖导致冲突
所以我们要排除掉冲突的依赖
org.apache.hive hive-jdbc 2.1.0 jdk.tools jdk.tools org.apache.logging.log4j log4j-slf4j-impl org.eclipse.jetty.aggregate jetty-all



