将需要复制的文件拷贝到服务器上之后,配置完数据库,您需要关注及修改以下几个文件的内容。
网站根目录下:
agreement.txt -->用户注册协议,文本文件,可直接修改。
/WEB-INF/classes/ 下:
jdbc.properties --> 数据库连接配置文件
-----------------------------jdbc.properties文件内容--------------------------------------
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/portal?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull
jdbc.username=root
jdbc.password=
-----------------------------------------------------------------------------------
i18n_security_zh_CN.properties --> 网站安全配置文件
-----------------------------i18n_security_zh_CN.properties文件内容--------------------------------------
loginer.backstage.config.default.username=lerx
loginer.backstage.config.default.password=ilovelerx
loginer.backstage.config.ip.region.allow=
captcha.mode=number
context.path=http://localhost/
//以上在5.3以后版本中
url.login.admin=/admin/login
folder.admin=admin
admin.login=jsp/{folder.admin}/login
admin.main=jsp/{folder.admin}/main
admin.add=jsp/{folder.admin}/add
admin.list=jsp/{folder.admin}/list
#admin.forbid=jsp/result/forbid
admin.forbid=jsp/{folder.admin}/login
admin.monitor.login=false
admin.login.url.check=false
defalut.password=123456
safeSessionStr=_lerx_ip_server_key_
login.upper.failed=5
login.minutes.wait.afterFailed=10
mail.send.allow.suffix=139.com,189.cn,qq.com
mail.subject.title.default=\u6765\u81EALerx CMS\u7684\u65B0\u90AE\u4EF6
mail.server.host=smtp.163.com
mail.server.login.user=username
mail.server.login.password=password
mail.server.sender=lerxadmin@163.com
mail.server.auth=true
mail.charset=UTF-8
mail.debug=false
vcode.sendchar.mode=1
vcode.sendchar.length=4
vcode.sendchar.effective=5m
sms.url=
sms.account=
sms.appid=14000xxxxx
sms.pwd=0229d601fd273c3ae1a95babd95xxxxx
template.receive.folder=template_receive
-----------------------------------------------------------------------------------
app.conff(5.2以前版本) -->配置文件登录,及后台登录等信息,5.3版本以后见上面的说明
-----------------------------app.conf(5.2以前版本)文件内容--------------------------------------
default.admin.username=lerx
default.admin.password=ilovelerx
login.configer.ip.allow=
#验证码模式 blend 混合 | number 纯数字 | words 纯字母
captcha.mode=number
context.path=http://localhost/
-----------------------------------------------------------------------------------
重要的可能难以理解的信息,请见评论内容↓↓↓