docs: 修正文档
This commit is contained in:
@@ -11,7 +11,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import redis.clients.jedis.JedisPool;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
import java.net.URI;
|
||||
import java.sql.Connection;
|
||||
import java.sql.SQLException;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
@@ -51,7 +50,7 @@ public abstract class CoreAPI {
|
||||
scheduledService = Executors.newScheduledThreadPool(1, new NamedThreadFactory("HamsterCore - Scheduler"));
|
||||
|
||||
getLogger().info("正在创建 Redis 连接池");
|
||||
jedisPool = new JedisPool(URI.create(config.getString("redis-url", "redis://localhost:6379/0?clientName=HamsterCore&timeout=5s")));
|
||||
jedisPool = new JedisPool(config.getString("redis-url"));
|
||||
getLogger().info("Redis 连接池创建完成");
|
||||
|
||||
ConfigSection datasourceConfig = config.getSection("datasource");
|
||||
@@ -112,7 +111,7 @@ public abstract class CoreAPI {
|
||||
* @return GSON 工具,会使用格式化输出、且解析中包含null参数
|
||||
*/
|
||||
@NotNull
|
||||
public abstract Gson getHumanGson();
|
||||
public abstract Gson getGsonHuman();
|
||||
|
||||
@NotNull
|
||||
public abstract AudienceProvider getAudienceProvider();
|
||||
|
Reference in New Issue
Block a user