()
| 39 | } |
| 40 | |
| 41 | private static LoadConfig LoadConfig() { |
| 42 | try { |
| 43 | byte[] bytes = Files.readAllBytes(Paths.get("linkd.json")); |
| 44 | return new JsonReader().buf(bytes).parse(LoadConfig.class); |
| 45 | // return new ObjectMapper().readValue(bytes, LoadConfig.class); |
| 46 | } catch (Exception e) { |
| 47 | // e.printStackTrace(); |
| 48 | } |
| 49 | return new LoadConfig(); |
| 50 | } |
| 51 | |
| 52 | public void Start(String[] args) throws Exception { |
| 53 | int serverId = -1; |