ActiveMQ RestAPI 接收消息
ActiveMQ RestAPI 接收消息
Authorization
Basic YWRtaW46YWRtaW4=
YWRtaW46YWRtaW4= 参数构成为 Base64(admin:admin)
ActiveMQ RestAPI 接收消息
Authorization
Basic YWRtaW46YWRtaW4=
YWRtaW46YWRtaW4= 参数构成为 Base64(admin:admin)
SpringBoot 连接配置
1 | spring: |
Druid
配置
1 | spring: |
MongoDB
下载地址:https://www.mongodb.com/try/download/community
MongoDB Shell
下载地址:https://www.mongodb.com/try/download/shell
Web
管理工具下载:
解压 mongodb-windows-x86_64-6.0.4.zip
目录 D:\develop\mongodb\mongodb
解压 mongosh-1.8.0-win32-x64.zip
目录 D:\develop\mongodb\mongosh
创建库:
1 | mkdir D:\develop\mongodb\mongodb\log |
运行:
1 | D:\develop\mongodb\mongodb\bin\mongod.exe |
连接:
1 | D:\develop\mongodb\mongosh\bin\mongosh "mongodb://localhost:27017" |
Spring Security
版本 5.7.3
PasswordEncoder
生成类1 | import com.maxzhao.security.crypto.BootPasswordProperties; |
BootPasswordProperties
类
1 | import lombok.Data; |
yml
配置自定义密码加密方式1 | boot: |
Sm2PasswordEncoder
需要实现org.springframework.security.crypto.password.PasswordEncoder
接口
SpringSecurity
配置1 | @Slf4j |
Spring Security
版本 5.7.3
SpringSecurity
配置1 | public class AuthorizationServerSecurityConfiguration { |
1 | # A fatal error has been detected by the Java Runtime Environment: |
换 JDK11
参考 创建基于网络的安装
参考1:
1 | C:\Users\Administrator\Downloads\vs_Enterprise.exe --layout D:\tools\c++\2022enterprise --lang Zh-cn --includeRecommended |
参考2:
1 | C:\Users\Administrator\Downloads\vs_Enterprise.exe --layout D:\tools\c++\2022enterprise --lang Zh-cn --add Microsoft.VisualStudio.Workload.CoreEditor --add Microsoft.VisualStudio.Component.ManagedDesktop.Core --add Microsoft.VisualStudio.Workload.ManagedDesktop |
执行 vs_setup.exe
安装依赖
1 | sudo yum install -y libcurl openssl xz-libs wget vim |
安装
1 | mkdir ~/tools && cd ~/tools |
复制命令
1 | sudo cp ~/mongodb/bin/* /usr/local/bin/ |
创建用户
1 | sudo useradd mongod |
编辑配置文件
1 | sudo vim /etc/mongod.conf |
写入
1 | storage: |
启动
1 | mongod --dbpath /var/lib/mongo --logpath /var/log/mongodb/mongod.log --fork |
wsl
windows11 - 控制面板 - 启用或关闭 Windows 功能 - 勾选 适用于 Linux 的 Windows 子系统。
安装成功后重启。
1 | # 查询在线的版本 --list --online |
结果
1 | NAME FRIENDLY NAME |
kali
1 | wsl.exe --install kali-linux |
OpenEuler
1 |
1 | wsl.exe -l -v |
结果
1 | NAME STATE VERSION |
1 | # --set-default |
1 | wsl -d openEuler-22.03 |
1 | sudo yum install -y net-tools vim wget tar unzip cifs-utils |
1 | wsl --shutdown |
1 | 版权所有 (c) Microsoft Corporation。保留所有权利。 |