Skip to content

Commit

Permalink
更改配置方式
Browse files Browse the repository at this point in the history
  • Loading branch information
2511689622 committed Dec 9, 2024
1 parent 1d1cbd9 commit 34cccec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 34 deletions.
8 changes: 4 additions & 4 deletions openeuler/src/main/java/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ public class App {
private static final String MAPPING_PATH = System.getenv("MAPPING_PATH");

private static final String INDEX_PREFIX = "openeuler_articles";
private static final String ETHERPAD_URL = System.getenv("ETHERPAD_URL");
private static final String ETHERPAD_KEY = System.getenv("ETHERPAD_KEY");

private static final Logger logger = LoggerFactory.getLogger(App.class);

private static final ImportConfig importConfig = new ImportConfig();

public static void main(String[] args) {
try {
PublicClient.CreateClientFormConfig(APPLICATION_PATH);
Expand Down Expand Up @@ -75,8 +75,8 @@ public static void sigData() throws Exception {
}

public static void etherpadData(){
String url = importConfig.getUrl();
String apiKey = importConfig.getApiKey();
String url = ETHERPAD_URL;
String apiKey = ETHERPAD_KEY;
EPLiteClient client = new EPLiteClient(url, apiKey);

Map result = client.listAllPads();
Expand Down
30 changes: 0 additions & 30 deletions openeuler/src/main/java/ImportConfig.java

This file was deleted.

0 comments on commit 34cccec

Please sign in to comment.