配置文件

master
gaojie 2019-06-21 10:21:43 +08:00
parent 2cfac32ec7
commit 926c0d0414
2 changed files with 9 additions and 3 deletions

View File

@ -20,7 +20,13 @@ public class WebContextListener implements ServletContextListener {
InputStream inputStream = null;
try {
String path=System.getProperty("catalina.home");
String osName = System.getProperty("os.name");
if (osName.matches("^(?i)Windows.*$")) {// Window 系统
path = DEFAULT_CONFIG_PATH;
}else{
path += "/config/jl_loginserver/application.properties";
}
inputStream = getClass().getResourceAsStream(path);
if (inputStream != null) {
BaseGlobal.getInstance().properties.load(inputStream);

View File

@ -1,5 +1,5 @@
#mogodb服务地址
mongodb_url = mongodb://jieling:jieling666@60.1.1.14:27017/?&authSource=admin
mongodb_url = mongodb://60.1.1.14:27017/?&authSource=admin
mongodb_name = jl_core
#与目标数据库可以建立的最大链接数
mongodb_maximumNumberOfConnections = 100
@ -20,7 +20,7 @@ mongodb_socketKeepAlive = true
redis_host = 60.1.1.14
redis_port = 6379
redis_password=jieling666
redis_password=
redis_maxTotal = 10
redis_minIdle = 3
redis_maxWaitMillis = 20