Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure iBATIS XML under Oracle

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the knowledge of "how to configure iBATIS XML under Oracle". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

First, let's take a look at our environment:

Source files: DataSource.properties

Db-driver=oracle.jdbc.driver.OracleDriver

Db-url=jdbc:oracle:thin:@IP: Port: ORCL

Db-username=name

Db-password=psw

IBATIS XML profile: sql-map-config-dbname.xml

< sqlMapConfig > < properties resource=" package path / DataSource.properties "/ > < settings// connection pool configuration item cacheModelsEnabled=" true "/ / whether caching is enabled It is recommended to enable bytecode enhancement mechanism for ture enhancementEnabled= "true" / / for POJO, and for true lazyLoadingEnabled= "true" / / to enable delayed loading of maxRequests= "32" / / maximum number of concurrent requests maxSessions= "10" / / maximum number of concurrent SqlMapClien allowed Between maxTransactions= "5" / / maximum number of concurrent transactions useStatementNamespaces= "true" / / whether to enable space naming / > < transactionManager type= "JDBC" > / / JDBC configuration item < dataSource type= "SIMPLE" > < property name= "JDBC.Driver" value= "${db-driver}" / > / Source < property name= "JDBC.ConnectionURL" value= "${db-url}" / > < property name= "JDBC.Username" value= "${db-username}" / > < property name= "JDBC.Password" value= "${db-password}" / > < / dataSource > < / transactionManager > < sqlMap resource= "package path / * 1.xml "/ > / / location of the mapping file Multiple sqlMap nodes can appear in the configuration to specify all mapping files included in the project < sqlMap resource= "package path / * 2.xml" / > < sqlMap resource= "package path / * 3.xml" / > < / sqlMapConfig > "how to configure iBATIS XML under Oracle". This ends here. Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report