Skip to main content Skip to main menu

Support

We introduce all kinds of eGovFrame related documents, training and technical support information in this corner.
Also, we provide the contact information and the location of the eGovFrame center.

Posted Question Details View This table provides TITLE, DIVISION, VIEWS, WRITER, DATE ASKED, NATIONALITY, EMAIL, EMAIL REPLY, STATUS, Question, Answer.
Title mraiDB Connection
Division Development Environment Views 319
Writer g**y Date Asked 2023-05-15 Nationality PH
Email Reply Y STATUS Complete
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.