mirror of
https://github.com/LamGC/Oracle-Sentry.git
synced 2025-04-29 22:27:34 +00:00
fix: 移除硬编码的默认值, 修复脚本路径引用错误.
移除代码中对配置的默认值(目前默认值存储于包内 application.yml), 修复部分配置的配置项引用路径错误的问题.
This commit is contained in:
parent
a83c09a787
commit
3e82419d1d
@ -27,19 +27,19 @@ public class ApplicationInitiation implements ApplicationContextInitializer {
|
||||
|
||||
private final static Logger log = LoggerFactory.getLogger(ApplicationInitiation.class);
|
||||
|
||||
@Value("${oracle.identity.location:./identity/}")
|
||||
@Value("${oracle.identity.location}")
|
||||
@NonNull
|
||||
private String identityDirectory;
|
||||
|
||||
@Value("${oracle.identity.pattern:.*\\.oracle.ini$}")
|
||||
@Value("${oracle.identity.pattern}")
|
||||
@NonNull
|
||||
private String identityFilePattern;
|
||||
|
||||
@Value("${sentry.script.location:./scripts/}")
|
||||
@Value("${oracle.script.location}")
|
||||
@NonNull
|
||||
private String scriptsLocation;
|
||||
|
||||
@Value("${oracle.script.ssh.identityPath:./config/ssh.config.json}")
|
||||
@Value("${oracle.ssh.identityPath}")
|
||||
@NonNull
|
||||
private String sshIdentityPath;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user