服务端配置好ip、数据库后,启动报错以下内容:
log4j:WARN No appenders could be found for logger (cn.wildfirechat.sdk.utilities.AdminHttpUtils). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. org.apache.http.conn.HttpHostConnectException: Connect to localhost:18080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:159) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) at cn.wildfirechat.sdk.utilities.AdminHttpUtils.httpJsonPost(AdminHttpUtils.java:71) at cn.wildfirechat.sdk.UserAdmin.createUser(UserAdmin.java:29) at cn.wildfirechat.sdk.Main.testUser(Main.java:62) at cn.wildfirechat.sdk.Main.testAdmin(Main.java:36) at cn.wildfirechat.sdk.Main.main(Main.java:24)