尝试连接mariaDb时遇到问题。下面提到的代码适用于MySQL,但是当我尝试与MariaDB连接时,它显示以下错误:
<!-- <bean id="datasource"
class="org.springframework.jdbc.datasource.MariaDbPoolDataSource">
<property name="driverClassName" value="org.mariadb.jdbc.Driver" />
<property name="url" value="jdbc:mariadb://localhost:3306/myusers" />
<property name="username" value="root" />
<property name="password" value="root" />
</bean> -->
<bean id="datasource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://localhost:3306/myusers" />
<property name="username" value="root" />
<property name="password" value="root" />
</bean>