在 SpringBoot 项目中,我们经常会在 application.yml 配置文件中直接写上数据库的明文密码,这不是一个很好的方式,一旦代码泄漏,后果不堪设想。因此在这里提供一个将明文密码配置成加密密码的方法,供大家参考。
https://github.com/ulisesbocchio/jasypt-spring-boot
缺失模块。
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