版本规整V4
@ -6,7 +6,8 @@ VITE_APP_BASE_API=/dev-api
|
||||
# watermark
|
||||
VITE_WATERMARK=Y
|
||||
# 是否开启 SSE 功能
|
||||
VITE_APP_SSE=Y
|
||||
#VITE_APP_SSE=Y
|
||||
VITE_APP_SSE=N
|
||||
# 是否开启 websocket 功能
|
||||
VITE_APP_WEBSOCKET=N
|
||||
|
||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 13 KiB |
BIN
cds-fontend-2025.V1/public/favicon.png.bak.bak
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
cds-fontend-2025.V1/public/logo.png
Normal file
After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 170 KiB After Width: | Height: | Size: 13 KiB |
BIN
cds-fontend-2025.V1/src/assets/imgs/logo.png.bak
Normal file
After Width: | Height: | Size: 170 KiB |
@ -1,5 +1,7 @@
|
||||
package org.dromara;
|
||||
|
||||
import org.jasypt.encryption.pbe.PooledPBEStringEncryptor;
|
||||
import org.jasypt.encryption.pbe.config.SimpleStringPBEConfig;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
|
||||
@ -18,6 +20,32 @@ public class DromaraApplication {
|
||||
application.setApplicationStartup(new BufferingApplicationStartup(2048));
|
||||
application.run(args);
|
||||
System.out.println("mps started successfully!");
|
||||
TEST();
|
||||
}
|
||||
|
||||
//方便测试,后续删掉
|
||||
public static void TEST() {
|
||||
PooledPBEStringEncryptor encryptor = new PooledPBEStringEncryptor();
|
||||
SimpleStringPBEConfig config = new SimpleStringPBEConfig();
|
||||
|
||||
// 设置加密密钥(与配置中使用的密钥一致)
|
||||
config.setPassword("66668888"); // 替换为你的密钥
|
||||
// 设置算法
|
||||
config.setAlgorithm("PBEWithHMACSHA512AndAES_256");
|
||||
config.setKeyObtentionIterations("1000");
|
||||
config.setPoolSize("1");
|
||||
config.setProviderName("SunJCE");
|
||||
config.setSaltGeneratorClassName("org.jasypt.salt.RandomSaltGenerator");
|
||||
config.setIvGeneratorClassName("org.jasypt.iv.RandomIvGenerator");
|
||||
config.setStringOutputType("base64");
|
||||
encryptor.setConfig(config);
|
||||
|
||||
String plainText = "GTsoft+123."; // 替换为你的数据库明文密码
|
||||
String encryptedText = encryptor.encrypt(plainText);
|
||||
System.out.println("Encrypted password: ENC(" + encryptedText + ")");
|
||||
|
||||
// 如需解密验证,可使用下面一行
|
||||
// System.out.println("Decrypted: " + encryptor.decrypt(encryptedText));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -40,7 +40,8 @@ spring:
|
||||
# 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content
|
||||
dynamic:
|
||||
# 性能分析插件(有性能损耗 不建议生产环境使用)
|
||||
p6spy: false
|
||||
# 投产初期,暂时打开
|
||||
p6spy: true
|
||||
# 设置默认的数据源或者数据源组,默认值即为 master
|
||||
primary: master
|
||||
# 严格模式 匹配不到数据源则报错
|
||||
|