The infamous java.sql.SQLException: No suitable driver found

前端 未结 16 1523
广开言路
广开言路 2020-11-21 05:10

I\'m trying to add a database-enabled JSP to an existing Tomcat 5.5 application (GeoServer 2.0.0, if that helps).

The app itself talks to Postgres just fine, so I kn

16条回答
  •  甜味超标
    2020-11-21 05:36

    I've forgot to add the PostgreSQL JDBC Driver into my project (Mvnrepository).

    Gradle:

    // http://mvnrepository.com/artifact/postgresql/postgresql
    compile group: 'postgresql', name: 'postgresql', version: '9.0-801.jdbc4'
    

    Maven:

    
        postgresql
        postgresql
        9.0-801.jdbc4
    
    

    You can also download the JAR and import to your project manually.

提交回复
热议问题