📄 db.properties
字号:
#connectionMode is the mode you get connections, value can be [dbcp|tomcat|weblogic|nopool].
#MySQL/DB2/Oracle/MSSQL Default:dbcp(数据库连接池)
connectionMode=dbcp
#dbDriver is your database driver.
#MySQL Default:com.mysql.jdbc.Driver
#DB2 Default:COM.ibm.db2.jdbc.app.DB2Driver
#Oracle Default:oracle.jdbc.driver.OracleDriver
#MSSQL2000drv Default:com.microsoft.jdbc.sqlserver.SQLServerDriver
#MSSQL2005drv Default:com.microsoft.sqlserver.jdbc.SQLServerDriver
dbDriver=com.mysql.jdbc.Driver
#dbUrl is DB connection URL.
#MySQL Default:jdbc:mysql://127.0.0.1/lybbs?useUnicode=true&characterEncoding=GBK
#DB2 Default:jdbc:db2:lybbs
#Oracle Default:jdbc:oracle:thin:@127.0.0.1:1521:lybbs
#MSSQL2000drv Default:jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=lybbs
#MSSQL2005drv Default:jdbc:sqlserver://127.0.0.1:1433;DatabaseName=lybbs
dbUrl=jdbc:mysql://127.0.0.1/lybbs6?useUnicode=true&characterEncoding=GBK
#dbUsername is your username connected to database.
#MySQL/DB2/Oracle/MSSQL Default:lybbs
dbUsername=lybbs
#dbPassword is your password connected to database.
#MySQL/DB2/Oracle/MSSQL Default:lybbs
dbPassword=lybbs
#dbRemoveAbandoned is auto remove idle connections or not.
#MySQL/DB2/Oracle/MSSQL Default:false
dbRemoveAbandoned=false
#dbPoolPreparedStatements is prepared statement pooling enabled or not.
#MySQL/DB2/Oracle/MSSQL Default:false
dbPoolPreparedStatements=false
#dbMaxOpenPreparedStatements is the maximum number of open statements that can be allocated from the statement pool at the same time, 0 for no limit. Validated only when dbPoolPreparedStatements is true.
#MySQL/DB2/Oracle/MSSQL Default:0
dbMaxOpenPreparedStatements=50
#dbInitialSize is the initial number of connections when the pool is started.
#MySQL/DB2/Oracle/MSSQL Default:3
#Supported from dbcp 1.2
dbInitialSize=3
#dbMaxActive is the max connections.
#MySQL/DB2/Oracle/MSSQL Default:20
dbMaxActive=20
#dbMaxIdle is the max connections that can remain idle in the pool.
#MySQL/DB2/Oracle/MSSQL Default:10
dbMaxIdle=10
#dbMinIdle is the min connections that can remain idle in the pool.
#MySQL/DB2/Oracle/MSSQL Default:1
dbMinIdle=1
#dbMaxWait is the max milliseconds that the pool will wait.
#MySQL/DB2/Oracle/MSSQL Default:-1
dbMaxWait=10000
#dbSupportTransaction is database supports transaction or not.
dbSupportTransaction=true
#lybbsPath is the home directory installed of lybbs. Default:%lybbs_home%
#MySQL/DB2/Oracle/MSSQL Default:%lybbs_home%
#Warning: Don't add '/' at the end
#lybbsPath=D:/web/service/lybbs
lybbsPath=D:/tomcat5.5/webapps/lybbs
#the parameters below do not need to modify.
lybbsSearchPath=${lybbsPath}/WEB-INF/lybbs/search
lybbsUploadPath=${lybbsPath}/WEB-INF/lybbs/upload
lybbsConfigPath=${lybbsPath}/WEB-INF/lybbs/config
lybbsAlbumPath=${lybbsPath}/WEB-INF/lyblog/album
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -