diff --git a/应用/1.0/config.json b/应用/1.0/config.json new file mode 100644 index 0000000..3795a43 --- /dev/null +++ b/应用/1.0/config.json @@ -0,0 +1,19 @@ +{ + "title": "天气灾害预警配置文件", + "key": "fe9fa8eeeb6f4301a92541eed565dd15", + "query_url": "https://devapi.qweather.com/v7/warning/now?", + "wechat_officalaccount_url": "https://cxxmwx.cpic.com.cn/app/index.php?i=2&c=entry&do=send_group_tpl_api&m=ok_tplmessage", + "query_interval": 10, + "cities": [ + { + "city_name": "厦门", + "city_code": "101230201" + } + ], + "notify_stuffs": [ + { + "stuff_name": "王炜", + "mobile_phone": "15959215339" + } + ] +} diff --git a/应用/1.0/db.json b/应用/1.0/db.json new file mode 100644 index 0000000..a8f5ddd --- /dev/null +++ b/应用/1.0/db.json @@ -0,0 +1,14 @@ +{ + "tns_name": "xmcx1", + "ip_addr": "10.39.0.86", + "jdbc_url": "jdbc:oracle:thin:@10.39.0.86:1521:xmcx1", + "table_space": "wechat", + "user_name": "wechat", + "password": "@rn7Q+t5zeyKIZ~s", + "tables": [ + { + "table_name": "weather_disaster_notify", + "table_description": "天气预警消息表" + } + ] +} diff --git a/应用/1.0/logging.properties b/应用/1.0/logging.properties new file mode 100644 index 0000000..f82b56f --- /dev/null +++ b/应用/1.0/logging.properties @@ -0,0 +1,10 @@ + +handlers = java.util.logging.ConsoleHandler, java.util.logging.FileHandler + +.level = INFO + +java.util.logging.FileHandler.pattern = ./logs/log_%u.log +java.util.logging.FileHandler.limit = 50000 +java.util.logging.FileHandler.count = 1 +java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter +java.util.logging.FileHandler.append = true;