eGovFrame 표준프레임워크 포털

메뉴 건너띄기
상단메뉴 바로가기
본문 바로가기

이 누리집은 대한민국 공식 전자정부 누리집입니다.

본문 영역

We provide technical issue resolution support through Application Support, FAQ, and Q&A boards.

Development Environment
mraiDB Connection
  • Writer

    g**y

  • Date Asked

    2023-05-15

  • Views

    1334

  • 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.