Thursday, October 14, 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:



Create a simple Window



EVALUATE Audio Rippers And Converters



MKV to PSP



Days Of Thinking In 2006 Concluded Conference And Brilliant New Year Party



Infringement Play TV "Ugly Wudi" has been INDICTED potatoes cool 6



Comments Games Kids



FreeBSD SIMPLE coding



51.com Rap Tencent Tencent Responded Incredible Pressure



AVI to FLV



RM to AVI



Guide REGISTRY Tools



How do we advertise for white-collar?



Lay the foundation for the bug PREVENTION [2]



rundll32 exe STARTUP problems eliminate these



Infomation PIMS And Calendars



No comments:

Post a Comment