spring data mongodb用query Example的方式查询一直返回空数据,经查询是发现mongodb的有些数据document的_class字段缺失造成的,而_class字段正式由jpa插入的,而之前正好一些测试数据是没有通过jpa插入,所以没有自动生成_class字段。
重新清理后正常返回数据。
总角之宴 言笑晏晏
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true