java开发中用到的一些配置文件(一)

2014-11-24 03:14:06 · 作者: · 浏览: 3

1.struts1的配置文件--struts-config.xml

< xml version="1.0" encoding="UTF-8" >

scope="request" validate="true"

type="com.bbs.web.struts.action.UserAction">

2.struts2的配置文件

< xml version="1.0" encoding="UTF-8" >

"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"

"http://struts.apache.org/dtds/struts-2.0.dtd">

/success.jsp

3.hibernate的配置文件-- hibernate.cfg.xml

< xml version='1.0' encoding='utf-8' >

"-//Hibernate/Hibernate Configuration DTD 3.0//EN"

"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

com.mysql.jdbc.Driver

jdbc:mysql://localhost/hibernate

root

root

org.hibernate.dialect.MySQLDialect

1

thread

org.hibernate.cache.NoCacheProvider

50

true

true

update

4.hibernate的映射文件

< xml version="1.0" >

"-//Hibernate/Hibernate Mapping DTD 3.0//EN"

"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

5.ibatis的配置文件

< xml version="1.0" encoding="UTF-8" >

PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"

"http://www.ibatis.com/dtd/sql-map-config-2.dtd">

lazyLoadingEnabled="true" maxRequests="32" maxSessions="10"

maxTransactions="5" useStatementNamespaces="true" />