添加依赖
1 | <dependency> |
添加配置
1 | spring: |
启动类添加
1 | @MapperScan("com.karonda.restapi.dao") |
新建 dao
1 | public interface TvSeriesDao { |
新增 mapper TvCharacterDao.xml
1 | <?xml version="1.0" encoding="UTF-8" ?> |
新建 service
1 | @Service |
修改 Controller
1 | @Autowired |
1 | <dependency> |
1 | spring: |
1 | @MapperScan("com.karonda.restapi.dao") |
1 | public interface TvSeriesDao { |
1 | <?xml version="1.0" encoding="UTF-8" ?> |
1 | @Service |
1 | @Autowired |
tag:
缺失模块。
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