b3log的preference表

import org.b3log.latke.Latkes;
import org.b3log.latke.repository.RepositoryException;
import org.b3log.solo.model.Preference;
import org.b3log.solo.repository.PreferenceRepository;
import org.b3log.solo.repository.impl.PreferenceRepositoryImpl;
import org.json.JSONObject;

//实际上,这是从数据库中读记录
public class testPreference {

	/**
	 * @param args
	 * @throws RepositoryException 
	 */
	public static void main(String[] args) throws RepositoryException {
		// TODO Auto-generated method stub
		Latkes.initRuntimeEnv();
		JSONObject preference;
		PreferenceRepository preferenceRepository = PreferenceRepositoryImpl.getInstance();
		 preference = preferenceRepository.get(Preference.PREFERENCE);
		 System.out.println(preference);

	}

}

结果:

{"skinName":"ease","keyOfSolo":"Your key","feedOutputMode":"abstract","enableArticleUpdateHint":true,"metaKeywords":"Java 博客,GAE,b3log","skinDirName":"ease","editorType":"tinyMCE","articleListPaginationWindowSize":15,"version":"0.6.0","feedOutputCnt":10,"randomArticlesDisplayCount":5,"htmlHead":"","articleListDisplayCount":20,"externalRelevantArticlesDisplayCount":5,"blogSubtitle":"Java 开源博客","commentable":true,"blogTitle":"B3log Solo 示例","pageCacheEnabled":true,"mostUsedTagDisplayCount":20,"signs":"[{\"signHTML\":\"\",\"oId\":0},{\"signHTML\":\"\",\"oId\":1},{\"signHTML\":\"\",\"oId\":2},{\"signHTML\":\"\",\"oId\":3}]","noticeBoard":"Open Source, Open Mind, <br/>Open Sight, Open Future!","relevantArticlesDisplayCount":5,"mostViewArticleDisplayCount":5,"metaDescription":"An open source blog with Java. Java 开源博客","articleListStyle":"titleAndAbstract","allowVisitDraftViaPermalink":false,"adminEmail":"liulixin.org@gmail.com","mostCommentArticleDisplayCount":5,"blogHost":"http://localhost:8080/b3log_v2","localeString":"zh_CN","recentArticleDisplayCount":10,"oId":"preference","skins":"[{\"skinName\":\"Tree House\",\"skinDirName\":\"tree-house\"},{\"skinName\":\"i-nove\",\"skinDirName\":\"i-nove\"},{\"skinName\":\"timeline\",\"skinDirName\":\"timeline\"},{\"skinName\":\"owmx-3.0\",\"skinDirName\":\"owmx-3.0\"},{\"skinName\":\"Community\",\"skinDirName\":\"community\"},{\"skinName\":\"Andrea\",\"skinDirName\":\"andrea\"},{\"skinName\":\"ease\",\"skinDirName\":\"ease\"},{\"skinName\":\"NeoEase\",\"skinDirName\":\"neoease\"},{\"skinName\":\"favourite\",\"skinDirName\":\"favourite\"},{\"skinName\":\"经典淡蓝\",\"skinDirName\":\"classic\"},{\"skinName\":\"Mobile\",\"skinDirName\":\"mobile\"}]","recentCommentDisplayCount":10,"timeZoneId":"Asia/Shanghai"}

看一下在数据库中直接查询的结果:

  

用select skins from b3_solo_preference得到一大堆:

                           

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值