struts2.3.1+hibernate3.6.9Final+spring3.1.0+proxool+maven+an(6)

2019-01-27 11:01

###

log4j.appender.E = org.apache.log4j.DailyRollingFileAppender log4j.appender.E.File = ${webapp.root}/log/error.log log4j.appender.E.Append = true

log4j.appender.E.Threshold = ERROR

log4j.appender.E.layout = org.apache.log4j.PatternLayout

log4j.appender.E.layout.ConversionPattern =%-d{yyyy-MM-dd HH\\:mm\\:ss} [%t\\:%r] - [%p] %m%n

========================================== proxool.properties

## ##公用数据库参数配置 show_sql=true format_sql=true

hbm2ddl.auto=update

cglib.use_reflection_optimizer=true connection.release_mode=auto

current_session_context_class=thread connection.autocommit=true maxActive=300 maxIdle=30

maxWait=500

proxool.house-keeping-test-sql=select sysdate from DUAL

connection.provider_class=org.hibernate.connection.ProxoolConnectionProvider

database.connection=org.hibernate.connection.ProxoolConnectionProvider

proxool.alias=Demostic

## ## mySql ## ##

database.dialect=org.hibernate.dialect.MySQLDialect database.driver=com.mysql.jdbc.Driver

database.url=jdbc\\:mysql\\://127.0.0.1\\:3306/mydemo?useUnicode\\=true&characterEncoding\\=utf-8

database.user=root database.password=1

## ## orcale ## ##

##database.dialect=org.hibernate.dialect.OracleDialect ##database.driver=oracle.jdbc.driver.OracleDriver ##database.url=jdbc:oracle:thin:@127.0.0.1:1521:tcs ##database.user=demostic

##database.password=demostic ## ##缓存设置

hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider,org.hibernate.cache.EhCacheProvider hibernate.cache.use_query_cache=false hibernate.cache.use_second_level_cache=true

hibernate.cache.configurationResourceName=ehcache.xml hibernate.connection.autocommit=true ## ##测试版数据库

=================================proxool.xml=====================

mydemo

jdbc:mysql://localhost:3306/mydemo com.mysql.jdbc.Driver

10

500

10

90000

300

150

300000

14400000 set names 'UTF-8'; true

select 1 from dual

==========================================struts.properties========== ### Struts default properties

###(can be overridden by a struts.properties file in the root of the

classpath) ###

### Specifies the Configuration used to configure Struts ### one could extend org.apache.struts2.config.Configuration ### to build one's customize way of getting the configurations parameters into Struts

# struts.configuration=org.apache.struts2.config.DefaultConfiguration ### This can be used to set your default locale and encoding scheme # struts.locale=en_US

struts.i18n.encoding=UTF-8

### if specified, the default object factory can be overridden here ### Note: short-hand notation is supported in some cases, such as \

### Alternatively, you can provide a

com.opensymphony.xwork2.ObjectFactory subclass name here struts.objectFactory = spring

### specifies the autoWiring logic when using the SpringObjectFactory. ### valid values are: name, type, auto, and constructor (name is the default)

struts.objectFactory.spring.autoWire = name

### indicates to the struts-spring integration if Class instances should be cached

### this should, until a future Spring release makes it possible, be left as true

### unless you know exactly what you are doing!

### valid values are: true, false (true is the default) struts.objectFactory.spring.useClassCache = true

### if specified, the default object type determiner can be overridden here

### Note: short-hand notation is supported in some cases, such as \

### Alternatively, you can provide a

com.opensymphony.xwork2.util.ObjectTypeDeterminer implementation name here

### Note: By default,

com.opensymphony.xwork2.util.DefaultObjectTypeDeterminer is used which handles type detection ### using generics.

com.opensymphony.xwork2.util.GenericsObjectTypeDeterminer was deprecated since XWork 2, it's

### functions are integrated in DefaultObjectTypeDeterminer now. ### To disable tiger support use the \here.

#struts.objectTypeDeterminer = tiger #struts.objectTypeDeterminer = notiger

### Parser to handle HTTP POST requests, encoded using the MIME-type multipart/form-data

# struts.multipart.parser=cos # struts.multipart.parser=pell struts.multipart.parser=jakarta

# uses javax.servlet.context.tempdir by default struts.multipart.saveDir=

struts.multipart.maxSize=2097152

### Load custom property files (does not override struts.properties!) #

struts.custom.properties=application,org/apache/struts2/extension/custom

### How request URLs are mapped to and from actions

#struts.mapper.class=org.apache.struts2.dispatcher.mapper.DefaultActionMapper

### Used by the DefaultActionMapper

### You may provide a comma separated list, e.g. struts.action.extension=action,jnlp,do #struts.action.extension=do

struts.action.extension = action,do, ### Used by FilterDispatcher

### If true then Struts serves static content from inside its jar. ### If false then the static content must be available at


struts2.3.1+hibernate3.6.9Final+spring3.1.0+proxool+maven+an(6).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2013届高三物理第一轮单元能力复习题23 - 图文

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: