Commit c5a4e904 by HlQ

移除依赖

1 parent 66f352a4
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<modelVersion>4.0.0</modelVersion> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<groupId>com.vion</groupId> <modelVersion>4.0.0</modelVersion>
<artifactId>WeatherService</artifactId> <groupId>com.vion</groupId>
<version>0.0.1-SNAPSHOT</version> <artifactId>WeatherService</artifactId>
<version>0.0.1-SNAPSHOT</version>
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.0.RELEASE</version> <version>1.4.0.RELEASE</version>
<relativePath /> <relativePath/>
</parent> </parent>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.httpcomponents</groupId> <groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId> <artifactId>httpclient</artifactId>
<version>4.2.1</version> <version>4.2.1</version>
...@@ -24,76 +25,50 @@ ...@@ -24,76 +25,50 @@
<artifactId>httpcore</artifactId> <artifactId>httpcore</artifactId>
<version>4.2.1</version> <version>4.2.1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>commons-lang</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>commons-lang</artifactId> <artifactId>spring-boot-devtools</artifactId>
<version>2.6</version> <optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-configuration-processor</artifactId>
<scope>test</scope> </dependency>
</dependency> <dependency>
<dependency> <groupId>org.springframework.boot</groupId>
<groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId>
<artifactId>spring-boot-devtools</artifactId> </dependency>
<optional>true</optional> <dependency>
</dependency> <groupId>org.postgresql</groupId>
<dependency> <artifactId>postgresql</artifactId>
<groupId>org.springframework.boot</groupId> <version>42.2.2</version>
<artifactId>spring-boot-configuration-processor</artifactId> </dependency>
</dependency> <dependency>
<dependency> <groupId>com.alibaba</groupId>
<groupId>org.springframework.boot</groupId> <artifactId>druid</artifactId>
<artifactId>spring-boot-starter-jdbc</artifactId> <version>1.0.19</version>
</dependency> </dependency>
<dependency>
<groupId>mysql</groupId> <dependency>
<artifactId>mysql-connector-java</artifactId> <groupId>org.springframework</groupId>
</dependency> <artifactId>spring-context-support</artifactId>
<dependency> </dependency>
<groupId>org.postgresql</groupId> </dependencies>
<artifactId>postgresql</artifactId>
<version>42.2.2</version> <build>
</dependency> <plugins>
<!-- <dependency> --> <plugin>
<!-- <groupId>postgresql</groupId> --> <artifactId>maven-compiler-plugin</artifactId>
<!-- <artifactId>postgresql</artifactId> --> <configuration>
<!-- <version>9.1-901-1.jdbc4</version> --> <source>1.8</source>
<!-- </dependency> --> <target>1.8</target>
<dependency> </configuration>
<groupId>com.alibaba</groupId> </plugin>
<artifactId>druid</artifactId> <plugin>
<version>1.0.19</version> <groupId>org.springframework.boot</groupId>
</dependency> <artifactId>spring-boot-maven-plugin</artifactId>
<dependency> </plugin>
<groupId>org.quartz-scheduler</groupId> </plugins>
<artifactId>quartz</artifactId> </build>
<version>2.2.3</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz-jobs</artifactId>
<version>2.2.3</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project> </project>
\ No newline at end of file \ No newline at end of file
package com.viontech.job; package com.viontech.job;
import java.io.IOException; import java.io.IOException;
import java.sql.*;
import java.util.Date;
import java.time.LocalDate;
import java.time.ZoneId;
import java.util.List;
import com.viontech.model.Mall;
import com.viontech.service.impl.CityService;
import com.viontech.service.impl.WeatherService; import com.viontech.service.impl.WeatherService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import com.viontech.model.City;
import com.viontech.model.SimpleWeather;
import com.viontech.service.impl.JsonService;
/** /**
* @author zhaibolin * @author zhaibolin
*/ */
......
...@@ -8,8 +8,6 @@ import org.springframework.jdbc.core.JdbcTemplate; ...@@ -8,8 +8,6 @@ import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate; import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.time.LocalDate;
import java.time.ZoneId;
import java.util.*; import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
......
...@@ -6,21 +6,17 @@ import java.text.SimpleDateFormat; ...@@ -6,21 +6,17 @@ import java.text.SimpleDateFormat;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import javax.annotation.Resource;
import com.viontech.model.*; import com.viontech.model.*;
import org.apache.http.HttpResponse; import org.apache.http.HttpResponse;
import org.apache.http.util.EntityUtils; import org.apache.http.util.EntityUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.core.JdbcTemplate;
import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.viontech.utils.HttpUtils; import com.viontech.utils.HttpUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
/** /**
* @author zhaibolin * @author zhaibolin
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!