解决方案 »

  1.   

    >SimpleDataSource: Error while loading properties. Cause: java.lang.RuntimeException: SimpleDataSource: Some properties were not set.if (!(props.containsKey(PROP_JDBC_DRIVER)
    && props.containsKey(PROP_JDBC_URL)
    && props.containsKey(PROP_JDBC_USERNAME)
    && props.containsKey(PROP_JDBC_PASSWORD))) {
    throw new RuntimeException("SimpleDataSource: Some properties were not set.");
      

  2.   

    拼写错误
     private static final String PROP_JDBC_DRIVER = "JDBC.Driver";
    private static final String PROP_JDBC_URL = "JDBC.ConnectionURL";
    private static final String PROP_JDBC_USERNAME = "JDBC.Username";
    private static final String PROP_JDBC_PASSWORD = "JDBC.Password";
      

  3.   

    哈哈 Passowrd  --- > Password
      

  4.   


    出新问题了
    public List<Student> query() {
    List<Student> list = null;
    try {
    System.out.println("L");
    list =sqlMapclient.queryForList("selectAllStudent");
    } catch (SQLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
    return list;
    }到这行报list =sqlMapclient.queryForList("selectAllStudent");
    java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
      

  5.   


    出新问题了
    public List<Student> query() {
    List<Student> list = null;
    try {
    System.out.println("L");
    list =sqlMapclient.queryForList("selectAllStudent");
    } catch (SQLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
    return list;
    }到这行报list =sqlMapclient.queryForList("selectAllStudent");
    java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
    数据库没配好吧。。
    username=scott
    password=tiger
    这个是默认的那个?配个能通过连接测试的数据库吧
      

  6.   


    出新问题了
    public List<Student> query() {
    List<Student> list = null;
    try {
    System.out.println("L");
    list =sqlMapclient.queryForList("selectAllStudent");
    } catch (SQLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
    return list;
    }到这行报list =sqlMapclient.queryForList("selectAllStudent");
    java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
    数据库没配好吧。。
    username=scott
    password=tiger
    这个是默认的那个?配个能通过连接测试的数据库吧能我是w8系统, 但是要以管理员身份运行才能进去。  不知道是不是这个问题