|
GettingStarted
myblog the newest version is 1.8 National-Day-Final edition. using: spring, hibernate,dwr,freemarker,compass,etc.. IntroductionIt's a powerful web 2.0 blog.Use many ajax and more user experience Getting Started
默认的用户名是admin,密码也是admin.注意这个时候您做的所有操作都是没有保存到数据的库的,是保存在内在中的.
比如如果您使用mysql5.x的数据库您的数据库配置应该看起来是这个样子的 hibernate.dialect=org.hibernate.dialect.MySQL5Dialect datasource.driverClassName=com.mysql.jdbc.Driver datasource.url=jdbc:mysql://127.0.0.1:3306/myblog?useUnicode=true&characterEncoding=utf8 datasource.username=root datasource.password=root 请注意修改成您的url,username和password. 如果您使用其它数据库请参考config.properties里面注释了的一些配置做相应修改即可.
system.username=admin system.password=admin system.email=example@example.com 这三个配置。这里你可以修改后台登录用户的用户名,密码以及email地址。密码也可以安装后在后台管理里面修改.
mail.host=localhost mail.username= mail.password= mail.from=example@example.com mail.personal=Example.com 这里是为评论邮件通告设置的。如果设置不正常,将不会出现评论的邮件通告.
(I)数据库编码的问题。比如采用mysql,应该使用utf-8编码.可能您安装mysql的时候默认的编码不是使用的utf-8编码,您建立好数据库之后请执行下面语句 alter database myblog DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; (II)url编码的问题。您会发现安装好之后中文的分类,和中文的标签都不能正常的取到日志.这是因为url的编码问题。如果您使用的是tomcat您应该修改处理请求的那个connector 添加两个属性 URIEncoding="UTF-8" UseBodyEncodingForURI="true" Upgrade from old versions从1.5,1.6升级到1.8您需要做一下几个步骤.
update `MYBLOG_TAG` tag set `count` = (select count(1) from MYBLOG_ENTRY_TAGS where tagId=tag.id); update `MYBLOG_CATEGORY` category set `count` = (select count(1) from MYBLOG_ENTRY_CATEGORY where categoryId=category.id); 比如jdkcn.com的update链接应该是这样的http://jdkcn.com/admin/update.jspx OK. all done.您可以将initialization参数修改回false了.
Good, luck. :) 2007-10-30 23:50 |
Sign in to add a comment