springBoot 学习
1.springBoot 学习 视频教程
链接: https://pan.baidu.com/s/1HSw7ljLlN1jwyDpmUWx5gg
提取码: 51mx
亦可以直接查看视频(B站)
https://www.bilibili.com/video/av20965295/?p=7
2.swager 主要是生成API文档接口
参考链接: https://www.liangzl.com/get-article-detail-820.html
3.学习mybatis-plust
参考链接:https://mp.baomidou.com/guide/dynamic-datasource.html
4.1 :spingboot 下使用jyspt 密码加密
<dependency> <groupId>com.github.ulisesbocchio</groupId> <artifactId>jasypt-spring-boot-starter</artifactId> <version>2.0.0</version>
</dependency>
代码:
//准备加密密码(明码) String encrypPasswordStr = "DDmxkKLkHDkk6yjT"; BasicTextEncryptor basicTextEncryptor = new BasicTextEncryptor(); //加密秘钥在application.yml的jasypt:encryptor:password basicTextEncryptor.setPassword("cetc2019"); //加密后的密码 设置密码格式:ENC(加密后的密码) String encrytorStr = basicTextEncryptor.encrypt(encrypPasswordStr); //解密后的密码 String decryptStr = basicTextEncryptor.decrypt(encrytorStr); System.out.println("解密后的密码:"+decryptStr);
在application.ymal 中添加jsypt 配置即可
4.2 : 当把jsypt架包下来后,在架包目录的cmd下打开