Merge pull request #66 from onixbyte/release/2.2.0

Release/2.2.0
This commit is contained in:
Jam'o Siu
2025-06-04 11:36:05 +08:00
committed by GitHub
2 changed files with 7 additions and 3 deletions
@@ -33,8 +33,6 @@ import java.util.UUID;
* <p>
* The generated UUID adheres strictly to the layout and variant bits of UUID version 7 as defined in the specification.
* </p>
*
* @implNote This class implements the {@link GuidCreator} interface, providing UUID instances as unique identifiers.
*/
public class SequentialUuidCreator implements GuidCreator<UUID> {
@@ -27,6 +27,7 @@ import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.MapPropertySource;
import org.springframework.core.env.SimpleCommandLinePropertySource;
import java.security.GeneralSecurityException;
import java.util.HashMap;
import java.util.Optional;
@@ -65,6 +66,7 @@ import java.util.Optional;
* @see EnvironmentPostProcessor
* @since 1.1.0 (3.3.2 of MyBatis-Plus)
*/
@Deprecated(forRemoval = true)
public class PropertyGuard implements EnvironmentPostProcessor {
private final static Logger log = LoggerFactory.getLogger(PropertyGuard.class);
@@ -99,7 +101,11 @@ public class PropertyGuard implements EnvironmentPostProcessor {
for (var name : source.getPropertyNames()) {
if (source.getProperty(name) instanceof String str) {
if (str.startsWith("%s:".formatted(PREFIX))) {
try {
map.put(name, AesUtil.decrypt(str.substring(3), encryptionKey));
} catch (GeneralSecurityException e) {
log.error("Unable to decrypt param {}", name);
}
}
}
}