How can I implement this method to prevent from sql injection? Any help would be very much appreciated. Thank you all

48 views Asked by At

I am trying to stage a file in snowflake using JdbcTemplate.execute() but I don't know how protect it against sql injection.

private void stageFile(String fpath){
    template.execute("PUT file://" + fpath + " @SnowFlakeStage AUTO_COMPRESS=FALSE");
}
0

There are 0 answers