0
0

More than 3 years have passed since last update.

Struts2 iBasis DB連携ライブラリ関係のパス

Last updated at Posted at 2020-02-29

Spring設定ファイル

・applicationContext.xml
web.xml の中の<context-param>タグの中で任意で指定する。
WEB/INF/classes/ 直下がデファクト?

JDBC (DBアカウント等)設定ファイル

・datasource.properties
ファイル名は任意。datasource.propertiesやjdbc.propertiesなど。
applicationContext.xmlの中の<context:property-placeholder>でパスを定義する。
applicationContext.xmlの中の<bean id="dataSource">タグでこのプロパティファイルの中で指定したDB情報をDAOjavaBeanクラスとバインドする。

iBasic連携設定

・sqlMapConfig.xml
applicationContext.xmlの中の<bean id="splMapClient">タグで任意のパスを指定。
iBasisでのSQL文が書かれたxmlファイルパスを列挙する。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0