...
This commit is contained in:
		
							
								
								
									
										152
									
								
								code/java/天气灾害预警/disaster_warning.iml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										152
									
								
								code/java/天气灾害预警/disaster_warning.iml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,152 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
 | 
			
		||||
<!--
 | 
			
		||||
Licensed to the Apache Software Foundation (ASF) under one
 | 
			
		||||
or more contributor license agreements.  See the NOTICE file
 | 
			
		||||
distributed with this work for additional information
 | 
			
		||||
regarding copyright ownership.  The ASF licenses this file
 | 
			
		||||
to you under the Apache License, Version 2.0 (the
 | 
			
		||||
"License"); you may not use this file except in compliance
 | 
			
		||||
with the License.  You may obtain a copy of the License at
 | 
			
		||||
 | 
			
		||||
  http://www.apache.org/licenses/LICENSE-2.0
 | 
			
		||||
 | 
			
		||||
Unless required by applicable law or agreed to in writing,
 | 
			
		||||
software distributed under the License is distributed on an
 | 
			
		||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 | 
			
		||||
KIND, either express or implied.  See the License for the
 | 
			
		||||
specific language governing permissions and limitations
 | 
			
		||||
under the License.
 | 
			
		||||
-->
 | 
			
		||||
<module version="4" relativePaths="false" type="JAVA_MODULE"> 
 | 
			
		||||
  <component name="NewModuleRootManager"> 
 | 
			
		||||
    <exclude-output/>  
 | 
			
		||||
    <orderEntry type="inheritedJdk"/>  
 | 
			
		||||
    <!-- output url="file://$$MODULE_DIR$$/${maven.build.dest}"/ -->  
 | 
			
		||||
    <!-- output-test url="file://$$MODULE_DIR$$/${maven.test.dest}"/ -->  
 | 
			
		||||
    <content url="file://$MODULE_DIR$"> 
 | 
			
		||||
      <!-- sourceFolder url="file://$$MODULE_DIR$$/${pom.build.sourceDirectory}" isTestSource="false"/ -->  
 | 
			
		||||
      <!-- sourceFolder url="file://$$MODULE_DIR$$/${pom.build.testSourceDirectory}" isTestSource="true"/ -->  
 | 
			
		||||
      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false"/>
 | 
			
		||||
      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true"/>
 | 
			
		||||
      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" isTestSource="false"/>
 | 
			
		||||
      <excludeFolder url="file://$MODULE_DIR$/target"/>
 | 
			
		||||
    </content>  
 | 
			
		||||
    <orderEntry type="sourceFolder" forTests="false"/>  
 | 
			
		||||
    <!-- Next include each dependency:
 | 
			
		||||
      <orderEntry type="module" module-name="${dep.artifactId}"/>
 | 
			
		||||
      <orderEntry type="module-library">
 | 
			
		||||
        <library name="${dep.artifactId}">
 | 
			
		||||
          <CLASSES>
 | 
			
		||||
            <root url="jar://${lib.path}!/"/>
 | 
			
		||||
          </CLASSES>
 | 
			
		||||
          <JAVADOC/>
 | 
			
		||||
          <SOURCES/>
 | 
			
		||||
        </library>
 | 
			
		||||
      </orderEntry>
 | 
			
		||||
     -->  
 | 
			
		||||
    <output url="file://$MODULE_DIR$/target/classes"/>  
 | 
			
		||||
    <output-test url="file://$MODULE_DIR$/target/test-classes"/>  
 | 
			
		||||
    <orderEntry type="module-library"> 
 | 
			
		||||
      <library> 
 | 
			
		||||
        <CLASSES>
 | 
			
		||||
          <root url="jar://D:/DevTools/maven/Repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar!/"/>
 | 
			
		||||
        </CLASSES>
 | 
			
		||||
      </library> 
 | 
			
		||||
    </orderEntry>  
 | 
			
		||||
    <orderEntry type="module-library"> 
 | 
			
		||||
      <library> 
 | 
			
		||||
        <CLASSES>
 | 
			
		||||
          <root url="jar://D:/DevTools/maven/Repository/com/fasterxml/jackson/core/jackson-annotations/2.9.8/jackson-annotations-2.9.8.jar!/"/>
 | 
			
		||||
        </CLASSES>
 | 
			
		||||
      </library> 
 | 
			
		||||
    </orderEntry>  
 | 
			
		||||
    <orderEntry type="module-library"> 
 | 
			
		||||
      <library> 
 | 
			
		||||
        <CLASSES>
 | 
			
		||||
          <root url="jar://D:/DevTools/maven/Repository/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6.jar!/"/>
 | 
			
		||||
        </CLASSES>
 | 
			
		||||
      </library> 
 | 
			
		||||
    </orderEntry>  
 | 
			
		||||
    <orderEntry type="module-library"> 
 | 
			
		||||
      <library> 
 | 
			
		||||
        <CLASSES>
 | 
			
		||||
          <root url="jar://D:/DevTools/maven/Repository/com/fasterxml/jackson/core/jackson-databind/2.9.8/jackson-databind-2.9.8.jar!/"/>
 | 
			
		||||
        </CLASSES>
 | 
			
		||||
      </library> 
 | 
			
		||||
    </orderEntry>  
 | 
			
		||||
    <orderEntry type="module-library"> 
 | 
			
		||||
      <library> 
 | 
			
		||||
        <CLASSES>
 | 
			
		||||
          <root url="jar://D:/DevTools/maven/Repository/com/fasterxml/jackson/core/jackson-core/2.9.8/jackson-core-2.9.8.jar!/"/>
 | 
			
		||||
        </CLASSES>
 | 
			
		||||
      </library> 
 | 
			
		||||
    </orderEntry>  
 | 
			
		||||
    <orderEntry type="module-library"> 
 | 
			
		||||
      <library> 
 | 
			
		||||
        <CLASSES>
 | 
			
		||||
          <root url="jar://D:/DevTools/maven/Repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar!/"/>
 | 
			
		||||
        </CLASSES>
 | 
			
		||||
      </library> 
 | 
			
		||||
    </orderEntry>  
 | 
			
		||||
    <orderEntry type="module-library"> 
 | 
			
		||||
      <library> 
 | 
			
		||||
        <CLASSES>
 | 
			
		||||
          <root url="jar://D:/DevTools/maven/Repository/net/sf/json-lib/json-lib/2.4/json-lib-2.4-jdk15.jar!/"/>
 | 
			
		||||
        </CLASSES>
 | 
			
		||||
      </library> 
 | 
			
		||||
    </orderEntry>  
 | 
			
		||||
    <orderEntry type="module-library"> 
 | 
			
		||||
      <library> 
 | 
			
		||||
        <CLASSES>
 | 
			
		||||
          <root url="jar://D:/DevTools/maven/Repository/commons-beanutils/commons-beanutils/1.9.3/commons-beanutils-1.9.3.jar!/"/>
 | 
			
		||||
        </CLASSES>
 | 
			
		||||
      </library> 
 | 
			
		||||
    </orderEntry>  
 | 
			
		||||
    <orderEntry type="module-library"> 
 | 
			
		||||
      <library> 
 | 
			
		||||
        <CLASSES>
 | 
			
		||||
          <root url="jar://D:/DevTools/maven/Repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar!/"/>
 | 
			
		||||
        </CLASSES>
 | 
			
		||||
      </library> 
 | 
			
		||||
    </orderEntry>  
 | 
			
		||||
    <orderEntry type="module-library"> 
 | 
			
		||||
      <library> 
 | 
			
		||||
        <CLASSES>
 | 
			
		||||
          <root url="jar://D:/DevTools/maven/Repository/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar!/"/>
 | 
			
		||||
        </CLASSES>
 | 
			
		||||
      </library> 
 | 
			
		||||
    </orderEntry>  
 | 
			
		||||
    <orderEntry type="module-library"> 
 | 
			
		||||
      <library> 
 | 
			
		||||
        <CLASSES>
 | 
			
		||||
          <root url="jar://D:/DevTools/maven/Repository/org/apache/httpcomponents/httpcore/4.4.4/httpcore-4.4.4.jar!/"/>
 | 
			
		||||
        </CLASSES>
 | 
			
		||||
      </library> 
 | 
			
		||||
    </orderEntry>  
 | 
			
		||||
    <orderEntry type="module-library"> 
 | 
			
		||||
      <library> 
 | 
			
		||||
        <CLASSES>
 | 
			
		||||
          <root url="jar://D:/DevTools/maven/Repository/commons-codec/commons-codec/1.9/commons-codec-1.9.jar!/"/>
 | 
			
		||||
        </CLASSES>
 | 
			
		||||
      </library> 
 | 
			
		||||
    </orderEntry> 
 | 
			
		||||
  </component>  
 | 
			
		||||
  <component name="ModuleRootManager"/>  
 | 
			
		||||
  <!-- If it's a war project:
 | 
			
		||||
  <component name="WebModuleProperties">
 | 
			
		||||
    <containerElement type="module" name="${dep.artifactId}">
 | 
			
		||||
      <attribute name="method" value="1" />
 | 
			
		||||
      <attribute name="URI" value="/WEB-INF/classes" />
 | 
			
		||||
    </containerElement>
 | 
			
		||||
    <containerElement type="library" level="module" name="${dep.artifactId}">
 | 
			
		||||
      <attribute name="method" value="1" />
 | 
			
		||||
      <attribute name="URI" value="/WEB-INF/lib/${dep.systemPath.name}" />
 | 
			
		||||
    </containerElement>
 | 
			
		||||
    <deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/${pom.build.warSourceDirectory}/WEB-INF/web.xml" version="" />
 | 
			
		||||
    <webroots>
 | 
			
		||||
      <root url="file://$MODULE_DIR$/${pom.build.warSourceDirectory}" relative="/" />
 | 
			
		||||
    </webroots>
 | 
			
		||||
  </component>
 | 
			
		||||
  --> 
 | 
			
		||||
</module>
 | 
			
		||||
@@ -5,6 +5,7 @@
 | 
			
		||||
    <groupId>com.cpic.xim</groupId>
 | 
			
		||||
    <artifactId>disaster_warning</artifactId>
 | 
			
		||||
    <version>1.0-SNAPSHOT</version>
 | 
			
		||||
 | 
			
		||||
    <dependencies>
 | 
			
		||||
        <dependency>
 | 
			
		||||
            <groupId>org.apache.httpcomponents</groupId>
 | 
			
		||||
 
 | 
			
		||||
@@ -16,7 +16,6 @@ public class WeatherDisasterWarningGrabber
 | 
			
		||||
{
 | 
			
		||||
    private final static String QUERY_URL = "https://devapi.qweather.com/v7/warning/now?";
 | 
			
		||||
    private final static String USER_KEY  = "fe9fa8eeeb6f4301a92541eed565dd15";
 | 
			
		||||
    //private static QWeatherDisasterWarningItem item = null;
 | 
			
		||||
 | 
			
		||||
    /***
 | 
			
		||||
     * 从和风天气获取天气警报json字符串
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user