#Driver jdbc.driverClassName=com.mysql.jdbc.Driver #\u6570\u636e\u5e93\u94fe\u63a5\uff0c jdbc.url=jdbc:mysql://123.57.207.214:3306/pro_aft_test?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false #\u5e10\u53f7 jdbc.username=xiaolong #\u5bc6\u7801 jdbc.password=!qaz2wsx #\u68c0\u6d4b\u6570\u636e\u5e93\u94fe\u63a5\u662f\u5426\u6709\u6548\uff0c\u5fc5\u987b\u914d\u7f6e jdbc.validationQuery=SELECT 'x' #\u521d\u59cb\u8fde\u63a5\u6570 jdbc.initialSize=3 #\u6700\u5927\u8fde\u63a5\u6c60\u6570\u91cf jdbc.maxActive=20 #\u53bb\u6389\uff0c\u914d\u7f6e\u6587\u4ef6\u5bf9\u5e94\u53bb\u6389 #jdbc.maxIdle=20 #\u914d\u7f6e0,\u5f53\u7ebf\u7a0b\u6c60\u6570\u91cf\u4e0d\u8db3\uff0c\u81ea\u52a8\u8865\u5145\u3002 jdbc.minIdle=0 #\u83b7\u53d6\u94fe\u63a5\u8d85\u65f6\u65f6\u95f4\u4e3a1\u5206\u949f\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2\u3002 jdbc.maxWait=120000 #\u83b7\u53d6\u94fe\u63a5\u7684\u65f6\u5019\uff0c\u4e0d\u6821\u9a8c\u662f\u5426\u53ef\u7528\uff0c\u5f00\u542f\u4f1a\u6709\u635f\u6027\u80fd\u3002 jdbc.testOnBorrow=false #\u5f52\u8fd8\u94fe\u63a5\u5230\u8fde\u63a5\u6c60\u7684\u65f6\u5019\u6821\u9a8c\u94fe\u63a5\u662f\u5426\u53ef\u7528\u3002 jdbc.testOnReturn=false #\u6b64\u9879\u914d\u7f6e\u4e3atrue\u5373\u53ef\uff0c\u4e0d\u5f71\u54cd\u6027\u80fd\uff0c\u5e76\u4e14\u4fdd\u8bc1\u5b89\u5168\u6027\u3002\u610f\u4e49\u4e3a\uff1a\u7533\u8bf7\u8fde\u63a5\u7684\u65f6\u5019\u68c0\u6d4b\uff0c\u5982\u679c\u7a7a\u95f2\u65f6\u95f4\u5927\u4e8etimeBetweenEvictionRunsMillis\uff0c\u6267\u884cvalidationQuery\u68c0\u6d4b\u8fde\u63a5\u662f\u5426\u6709\u6548\u3002 jdbc.testWhileIdle=true #1.Destroy\u7ebf\u7a0b\u4f1a\u68c0\u6d4b\u8fde\u63a5\u7684\u95f4\u9694\u65f6\u95f4 #2.testWhileIdle\u7684\u5224\u65ad\u4f9d\u636e jdbc.timeBetweenEvictionRunsMillis=60000 #\u4e00\u4e2a\u94fe\u63a5\u751f\u5b58\u7684\u65f6\u95f4\uff08\u4e4b\u524d\u7684\u503c\uff1a25200000\uff0c\u8fd9\u4e2a\u65f6\u95f4\u6709\u70b9BT\uff0c\u8fd9\u4e2a\u7ed3\u679c\u4e0d\u77e5\u9053\u662f\u600e\u4e48\u6765\u7684\uff0c\u6362\u7b97\u540e\u7684\u7ed3\u679c\u662f\uff1a25200000/1000/60/60 = 7\u4e2a\u5c0f\u65f6\uff09 jdbc.minEvictableIdleTimeMillis=300000 #\u94fe\u63a5\u4f7f\u7528\u8d85\u8fc7\u65f6\u95f4\u9650\u5236\u662f\u5426\u56de\u6536 jdbc.removeAbandoned=true #\u8d85\u8fc7\u65f6\u95f4\u9650\u5236\u65f6\u95f4\uff08\u5355\u4f4d\u79d2\uff09\uff0c\u76ee\u524d\u4e3a5\u5206\u949f\uff0c\u5982\u679c\u6709\u4e1a\u52a1\u5904\u7406\u65f6\u95f4\u8d85\u8fc75\u5206\u949f\uff0c\u53ef\u4ee5\u9002\u5f53\u8c03\u6574\u3002 jdbc.removeAbandonedTimeout=300 #\u94fe\u63a5\u56de\u6536\u7684\u65f6\u5019\u63a7\u5236\u53f0\u6253\u5370\u4fe1\u606f\uff0c\u6d4b\u8bd5\u73af\u5883\u53ef\u4ee5\u52a0\u4e0atrue\uff0c\u7ebf\u4e0a\u73af\u5883false\u3002\u4f1a\u5f71\u54cd\u6027\u80fd\u3002 jdbc.logAbandoned=true #\u7edf\u8ba1\u76d1\u63a7 jdbc.filters=stat jedis.host=localhost jedis.port=6379 jedis.timeout=5000 jedis.password=aft@2016!redis$ pwd.hash_algorithm_name=md5 pwd.hash_iterations=2 session.timeout=12000000 session.validate.timespan=18000000 app.name=AFT static.host=//afts.hnzhiming.com/1.0.33 upload.path=/data/wwwroot/aft/upload upload.private.path=/data/upload accessKey=LTAIqTgQLLwz252Z accessSecret=ICGuiUnqzaar7urw4zecVcJrJ1MHg9 avatar.host=//afts.hnzhiming.com aesSecretKey=aft1234567890123 template.cacheable=false mobileCodeTemplate=SMS_37845022 portal.host=//afts.hnzhiming.com/portal/1.0.2 patentTemplate=SMS_72005286