spring-bootgradlejdbcdb2-400jt400

how to make a springboot webservice for as400 db2 with gradle?


I am trying to make a springboot webservice for as400 db2 with gradle. I have a webservice for sql with grdle. What changes should I make to connect it to DB2400??


Solution

  • Get the JDBC driver here:

    https://www-03.ibm.com/systems/power/software/i/toolbox/downloads.html

    Gradle dependency for the driver:

    // https://mvnrepository.com/artifact/net.sf.jt400/jt400
    compile group: 'net.sf.jt400', name: 'jt400', version: '9.4'
    

    The FAQ which includes the driver class name etc can be found here:

    https://www-03.ibm.com/systems/power/software/i/toolbox/faq/jdbc.html