Eclipse抛出了以下异常
ArrayList<Map> list;
descendingComparator = new Comparator<Map>() {
@Override
public int compare(Map lhs, Map rhs) {
return -1;
}
};
这是我的context.xml:
java.sql.SQLException: Driver "com.mysql.jdbc.Driver" does not support the url "null"
答案 0 :(得分:2)
connectionUrl
应该是connectionURL
,就像
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/advancedweb">
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/saketramdurbha_test"
connectionName="root" connectionPassword="pass"
userTable="adminspass" userNameCol="Username" userCredCol="Password"
userRoleTable="adminsrole" roleNameCol="Rolename" />
</Context>