-
Java 开源博客 Solo 2.9.4 发布,新皮肤加数据库重构
2018-09-17 01:10手动升级了数据库,确认字段该有的都有,不该有的都没有.
但是还是遇到了一个问题, 似乎是 FreeMarker 报告的:
[ERROR]-[2018-09-16 17:09:01]-[org.b3log.latke.servlet.renderer.freemarker.AbstractFreeMarkerRenderer:138]: FreeMarker renders error
FreeMarker template error:
An error has occurred when reading existing sub-variable "articleUpdateDate"; see cause exception! The type of the containing value was: extended_hash+string (org.json.JSONObject wrapped into f.e.b.StringModel)
FTL stack trace ("~" means nesting-related):
- Failed at: ${article.articleUpdateDate?string("y... [in template "article-list.ftl" at line 27, column 21]
- Reached through: #include "article-list.ftl" [in template "index.ftl" at line 63, column 21]Java stack trace (for programmers):
freemarker.core._TemplateModelException: [... Exception message was already printed; see it above ...]
at freemarker.ext.beans.BeanModel.get(BeanModel.java:183)
at freemarker.core.Dot._eval(Dot.java:43)
at freemarker.core.Expression.eval(Expression.java:83)
at freemarker.core.BuiltInsForMultipleTypes$stringBI._eval(BuiltInsForMultipleTypes.java:692)
at freemarker.core.Expression.eval(Expression.java:83) -
Java 开源博客 Solo 2.9.4 发布,新皮肤加数据库重构
2018-09-16 23:37升级失败了。
[INFO ]-[2018-09-16 15:36:21]-[org.b3log.solo.service.UpgradeService:191]: Upgrading from version [2.9.3] to version [2.9.4]....
[ERROR]-[2018-09-16 15:36:21]-[org.b3log.solo.service.UpgradeService:210]: Upgrade failed!
org.h2.jdbc.JdbcSQLException: Duplicate column name "ARTICLEAUTHORID"; SQL statement:
ALTER TABLEb3_solo_article
ADDarticleAuthorId
VARCHAR(19) DEFAULT '' NOT NULL [42121-190]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
at org.h2.message.DbException.get(DbException.java:179)
at org.h2.message.DbException.get(DbException.java:155)
at org.h2.table.Table.setColumns(Table.java:409) -
Java 开源博客 Solo 2.9.3 发布,可指定移动端皮肤
2018-09-15 22:50再补充一点,MySQL 连接串需要增加一个时区:
&serverTimezone=GMT%2B8jdbc.URL\=jdbc:mysql://localhost:3306/solo?useUnicode=yes&characterEncoding=utf8&serverTimezone=GMT%2B8
-
Java 开源博客 Solo 2.9.3 发布,可指定移动端皮肤
2018-09-15 22:41MySQL 驱动版本有些老了,不兼容 MySQL8.
建议改成:
<mysql-connector-java.version>8.0.11</mysql-connector-java.version>
-
Solo 用户指南
2018-09-14 22:21嗯,后面写新代码的时候,注意下,因为异常类型不是
Exception
而是 Error
或者是非Exception
子类的都会导致事务没有回滚。 -
Solo 开发指南
2018-09-14 02:22没有拉取 skins 子模块会导致初始化报错。
建议修改文档:
git clone --recursive
来 clone solo。
或者在 skins 目录执行:git submodule init && git submodule update -
社区推送 pipe 同步问题
2018-09-14 00:21太好了。
建议设计一种基于 HTTP 的通用消息协议,不光可以用于文章同步,最好是可以用于通用的分布式对象的部分变更的同步。
把 Latke 的基于 JSON 的 model 思想,发扬光大到消息协议的设计层面。 -
Latke 快速上手指南
2018-09-14 00:19请问,怎么在 repository.json 里面制定一个表的 Index?
我看到 solo 似乎有不少的 join 查询并没有走 Index。 -
《从零构建前后分离 web 项目》探究 - 深入聊聊前后分离架构
2018-09-06 00:04我见过最彻底的前后端分离架构是的 zeronet
.这货只通过 WebSocket 和服务器通讯。请求都是消息。