作者:txy001美丽人生_618 | 来源:互联网 | 2023-06-16 14:30
***Hive执行器1:失败0:成功*CreatedbyMa·JJon2021-04-15*@ComponentpublicclassHiveConnectUtils{@Autow
/**
* Hive执行器 1:失败 0:成功
* Created by Ma·JJ on 2021-04-15
*/
@Component
public class HiveConnectUtils {
@Autowired
private JdbcTemplate jdbcTemplate;
public static HiveConnectUtils hiveConnectUtils;
@PostConstruct
public void init() {
hiveCOnnectUtils= this;
hiveConnectUtils.jdbcTemplate = this.jdbcTemplate;
}
}
使用: hiveConnectUtils.jdbcTemplate.execute(hql);