Commit 795de3af authored by helei's avatar helei

1

parent 36062bc5
......@@ -30,13 +30,6 @@
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.2.0</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
<version>2.5.6</version>
</dependency>
<!-- hutool -->
<dependency>
<groupId>cn.hutool</groupId>
......@@ -66,19 +59,6 @@
<version>3.11</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<!-- 添加oracle驱动依赖 -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.3</version>
</dependency>
<!-- 引入swagger2 -->
<dependency>
<groupId>io.springfox</groupId>
......@@ -99,12 +79,6 @@
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.20</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
......
package com.example.data_push;
import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
/**
* @author 浪爷
*/
@EnableSwagger2
@SpringBootApplication(exclude = DruidDataSourceAutoConfigure.class)
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class DataPushApplication {
public static void main(String[] args) {
SpringApplication.run(DataPushApplication.class, args);
......
......@@ -4,37 +4,6 @@ server:
swagger:
enable: true
spring:
profiles:
active: dev
datasource:
dynamic:
primary: db1 # 配置默认数据库
datasource:
db1: # 数据源1配置
driver-class-name: oracle.jdbc.driver.OracleDriver
username: PARATROOPER
password: 123456
url: jdbc:oracle:thin:@192.168.20.163:1521:orcl
# db2: # 数据源2配置
# url: jdbc:mysql://116.211.118.66:12004/paratroops?characterEncoding=utf8&useUnicode=true&useSSL=false&serverTimezone=GMT%2B8
# username: root
# password: zhyy0804mysql
# #url: jdbc:mysql://39.102.53.133:10060/paratroops?characterEncoding=utf8&useUnicode=true&useSSL=false&serverTimezone=GMT%2B8
# #username: root
# #password: root
# driver-class-name: com.mysql.cj.jdbc.Driver
durid:
initial-size: 1
max-active: 20
min-idle: 1
max-wait: 60000
autoconfigure:
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
zyb:
#申报地址
url: http://47.99.104.188:8083/ws_data/ws/TJ?wsdl
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment