数据库
首页 > 数据库> > Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: unkow jdbc driver : ${}

Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: unkow jdbc driver : ${}

作者:互联网

<bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource">
    <property name="url" value="${url}"/>
    <property name="username" value="root"/>
    <property name="password" value="123"/>
</bean>

value里面直接写参数

<bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource">
    <property name="url" value="jdbc:mysql://localhost:3306/y2"/>
    <property name="username" value="root"/>
    <property name="password" value="123"/>
</bean>

标签:exception,JDBC,java,unkow,driver,obtain
来源: https://blog.csdn.net/qq_53963337/article/details/121046857