- Question
-
Please check my DB connection string
<bean id="dataSource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="org.mariadb.jdbc.Driver"/>
<property name="url" value="jdbc:mariadb://localhost:3306/test" />
<property name="username" value="root"/>
<property name="password" value="root"/>
</bean>
and the dependency is all set,
- Answer
-
When using MariaDB, you are affected by the following profile tags
<beans profile="maria">
When using a common component as a base
Please check the settings in the following file.
/src/main/resources/egovframework/egovProps/globals.properties
Inside the configuration file, The following settings are required
'Globals.DbType = maria'
Must be the same as the name of the profile designation.
Please watch out for typos.
Once you've made your modifications, try testing your connection.
thank you.
|