small corrections
This commit is contained in:
parent
002b76a33a
commit
63f0535a1b
2 changed files with 1 additions and 12 deletions
|
|
@ -1,20 +1,11 @@
|
|||
package com.example.app;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.time.Instant;
|
||||
import java.util.Base64;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.springframework.context.ApplicationContextInitializer;
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
import org.springframework.core.io.ResourceLoader;
|
||||
|
||||
import com.example.app.utils.KeyUtils;
|
||||
import com.example.app.utils.LicenseUtils;
|
||||
|
||||
public class StartupValidator implements ApplicationContextInitializer<ConfigurableApplicationContext> {
|
||||
|
||||
// receiverKeyPair.getPublic() (Base64):
|
||||
|
|
|
|||
|
|
@ -116,10 +116,8 @@ public class LicenseRest {
|
|||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
System.out.println("Provided path is not a directory.");
|
||||
}
|
||||
return "OK";
|
||||
throw new RuntimeException("No configuration found for ID = " + id);
|
||||
}
|
||||
|
||||
private Properties loadProperties(String filePath) throws IOException {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue