Saturday, September 25, 2010

With JSF + Spring + IBatis build a simple framework



web.xml: The key is listening into Spring

org.apache.myfaces.webapp.StartupServletContextListener

org.springframework.web.context.ContextLoaderListener

Spring configuration file applicationContext.xml: Here is the IBatis data source documents written in Spring, so Spring and IBatis combined

class = "org.apache.commons.dbcp.BasicDataSource"

destroy-method = "close">

com.mysql.jdbc.Driver

jdbc: mysql: / / 192.168.102.19/bookadmin

bookadmin

123456

class = "org.springframework.orm.ibatis.SqlMapClientFactoryBean">

classpath: thiz / ks / bookadmin / dao / ibatis / SqlMapConfig.xml

IBatis the SqlMap file SqlMapConfig.xml and JSF configuration file faces-config.xml: how to write or how to write.







Recommended links:



For You E-Mail Tools



VOB to Flash



3GP to MPEG



Flash light and shadow effects of the word



3G version of iPhone experience "quality gate"



analyst Microsoft 39 s urgent need to buy yahoo



Asia-Pacific Broadcasting Union General Assembly: the young man is the main consumer groups IPTV



Comment Wizards And Components



3 Accounting in a drama, colorful festival Foshan Accounting



Motorola recall: a beautiful mistake



Hard to break lose money Shucu low self Breakthrough Zhongguancun Marketplace



The world's smallest digital music player coming soon



FLV to SWF



No comments:

Post a Comment