Exception in thread “main“ java.sql.SQLException: Connections could not be acquired from the underly

之前搜索都是配置项问题:
1.端口号 ip地址
2.账号 密码

    <named-config name="greemysql">
        <property name="driverClass">com.mysql.jdbc.Driver</property>
        <property name="jdbcUrl">jdbc:mysql://192.168.115.23:3306/school?useSSL=false
        <property name="user">root</property>
        <property name="password">ok</property>
        <property name="initialPoolSize">10</property>
        <property name="maxPoolSize">100</property>
        <property name="checkoutTimeout">3000</property>
        <property name="maxIdleTime">30</property>
        <property name="minPoolSize">10</property>
    </named-config>

但是我这个呆比错误原因是我的配置项文件命名错误

你可能感兴趣的:(java)