第2.3.2章 WEB系统最佳实践属性配置之jdbc.properties

jdbc.properties定义的mysql的数据库连接,以及阿里druid连接池的配置.
第2.1.3章 WEB系统最佳实践Spring文件配置之spring-dao.xml中spring-dao.xml即是引用的此属性文件

jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/monitor_dev?useUnicode=true&characterEncoding=utf-8
jdbc.username=root
jdbc.password=YMgn/Ig8q7BzZtu21V/naaF7MQh5VjXv9MVQBUvbSC9hX5WBX7LRc2M59BSC5tbXnm8Fpfwh/29QGw2OuXDrOw==

#druid connection pool settings
druid.initialSize=10
druid.minIdle=10
druid.maxActive=50
druid.maxWait=60000
druid.timeBetweenEvictionRunsMillis=60000
druid.minEvictableIdleTimeMillis=300000
druid.validationQuery=SELECT 'x'
druid.testWhileIdle=true
druid.testOnBorrow=false
druid.testOnReturn=false
druid.poolPreparedStatements=true
druid.maxPoolPreparedStatementPerConnectionSize=20
druid.filters=config
druid.connectionProperties=config.decrypt=true;config.decrypt.key=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAIj/7nxtV/NeylTwuhw7JxYhuaCg+Bmo1hZXeAiMEKDSV8O7X98W4FWLOJHcbgEKJpAJFHlpfneOORfE9Do6qQ0CAwEAAQ==

你可能感兴趣的:(Web系统最佳实践,Web系统最佳实践,druid)