 |
利用开源框架Struts+Hibernate实现Web应用程序 |
|
利用开源框架Struts+Hibernate实现Web应用程序 |
|
|
摘 要:本文主要介绍了利用目前的开源框架来开发一MVC结构Web程序的主要过程,对作为Struts与Hibernate核心的配置文件作了简单介绍,最后提出了在开发类似项目时可能会遇到的一些问题和解决方案。 关键词:Web;开源框架;解决方案;Struts;Hibernate;MVC;<property name="hibernate.connection.url">jdbc:mysql:///user</property> <property name="hibernate.connection.username">root</property> <property name="hibernate.connection.password"></property> <property name="hibernate.connection.pool_size">100</property> <property name="dialect"> org.hibernate.dialect.MySQLDialect</property>
<!-- Mapping files --> <mapping resource="user.hbm.xml"/> </session-factory> </hibernate-configuration> User.hbm.xml: <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" > <hibernate-mapping> <class name=" hibernate.User" table="user" > [1] [2] [3] [4] 下一页 |
|
|
|
上一个论文: LabWindows/CVI的应用特点 下一个论文: 如何利用数据库及ASP技术类构建多功能网站 |
|