jdbc.properties 文件主要有2个方面的功能需要配置 #号为注释符号
1. 数据库连接
2. rabbitmq消息服务器配置
1. 数据库连接配置
#datasource
druid.datasource.url=jdbc:mysql://localhost:3306/hamsdemo?useUnicode=true&characterEncoding=UTF-8
druid.datasource.username=root
druid.datasource.password=password
#druid.datasource.url=jdbc:jtds:sqlserver://127.0.0.1:1433/zs;tds=8.0;lastupdatecount=true
#druid.datasource.username=sa
#druid.datasource.password=password#druid.datasource.url=jdbc:oracle:thin:@127.0.0.1:1521:ORCL
#druid.datasource.username=sssss
#druid.datasource.password=password
# default
druid.datasource.name=DataSource
druid.datasource.filters=stat
druid.datasource.maxActive=60
druid.datasource.initialSize=1
druid.datasource.maxWait=60000
druid.datasource.minIdle=1
druid.datasource.timeBetweenEvictionRunsMillis=60000
druid.datasource.minEvictableIdleTimeMillis=300000
druid.datasource.validationQuery=SELECT 'x'
druid.datasource.testWhileIdle=true
druid.datasource.testOnBorrow=false
druid.datasource.testOnReturn=false
druid.datasource.poolPreparedStatements=false
druid.datasource.maxOpenPreparedStatements=20
druid.datasource.slowSqlMillis=5000
druid.datasource.isLogSlowSql=true
sqlserverSchemaName=dbo
2. 消息服务器的配置
# rabbitmq
rabbitmq.host=localhost
rabbitmq.username=guest
rabbitmq.password=guest