Java教程

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>
这篇关于Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: unkow jdbc driver : ${}的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!