Home > iBATIS, Java Language, Spring > Spring + iBatis // Part 2 // Database Properties

Spring + iBatis // Part 2 // Database Properties

In the JDeveloper IDE, right click on the resources folder in your project structure (applications navigator window).  Select “New…” from the window and “File” from the general category.  Name the new file “database.properties”.

database.username=username
database.password=password
database.class=oracle.jdbc.OracleDriver
database.url=jdbc:oracle:thin:@host:port:sid

Place the above in the file (substitute values in italics) and save your project.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.