Authored by chaogeng

修改发布功能

HELP.md
/target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
*/target/
/.settings/
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
/build/
*.class
starter/target/
common/target/
*.lst
.idea
*.classpath
\ No newline at end of file
... ...
... ... @@ -3,12 +3,6 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<modules>
<module>starter</module>
<module>dal</module>
<module>service</module>
<module>common</module>
</modules>
<groupId>com.yoho.datasync.fullsync</groupId>
<artifactId>yoho-datasync-fullsync</artifactId>
<version>0.0.1-SNAPSHOT</version>
... ... @@ -35,7 +29,6 @@
<version>5.1.30</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
... ... @@ -44,6 +37,11 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
... ... @@ -86,14 +84,11 @@
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<modules>
<module>starter</module>
<module>dal</module>
<module>service</module>
<module>common</module>
</modules>
</project>
... ...
package com.yoho.datasync.fullsync.controller;
import com.yoho.datasync.fullsync.dal.repository.grass.model.GrassArticle;
import com.yoho.datasync.fullsync.service.IGrassArticleSyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
... ... @@ -16,6 +15,6 @@ public class GrassDataSyncController {
@RequestMapping("/syncArticle")
public String testDataSource(@RequestParam("startTime") Long startTime, @RequestParam("endTime") Long endTime){
return "";
return "success";
}
}
... ...
... ... @@ -27,6 +27,11 @@
<dependency>
<groupId>com.yoho.datasync.fullsync</groupId>
<artifactId>yoho-datasync-fullsync-common</artifactId>
</dependency>
<dependency>
<groupId>com.yoho.datasync.fullsync</groupId>
<artifactId>yoho-datasync-fullsync-dal</artifactId>
</dependency>
... ... @@ -36,5 +41,25 @@
</dependency>
</dependencies>
<build>
<finalName>yohofullsync</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>com.yoho.datasync.fullsync.starter.YohoFullsyncApplication</mainClass>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
... ...
... ... @@ -82,7 +82,7 @@ public class DataSourceConfig {
dataSource.setPassword(passWord);// 密码
dataSource.setInitialSize(initialSize);
dataSource.setMaxActive(maxTotal);
dataSource.setMaxIdle(maxIdle);
// dataSource.setMaxIdle(maxIdle);
dataSource.setMinIdle(minIdle);
dataSource.setQueryTimeout(defaultQueryTimeout);
dataSource.setTestWhileIdle(testWhileIdle);
... ...
rabbitmq:
server: "192.168.102.216"
port: 5672
username: "admin1"
password: "123qwe"
exchange: "yoho_datasync"
virtualHost: "/datasync"
spring:
datasource:
primary:
... ...
rabbitmq:
server: "192.168.102.216"
port: 5672
username: "admin1"
password: "123qwe"
exchange: "yoho_datasync"
virtualHost: "/datasync"
spring:
datasource:
url: jdbc:mysql://192.168.102.219:3306/yh_pcms?useUnicode=true&amp;characterEncoding=UTF-8
... ...
rabbitmq:
server: "192.168.102.216"
port: 5672
username: "admin1"
password: "123qwe"
exchange: "yoho_datasync"
virtualHost: "/datasync"
spring:
datasource:
url: jdbc:mysql://192.168.102.219:3306/yh_pcms?useUnicode=true&amp;characterEncoding=UTF-8
... ...
... ... @@ -3,6 +3,11 @@ spring:
active: dev
server:
port: 9010
servlet:
context-path:
/fullsync
management:
server:
port: 9011
\ No newline at end of file
... ...
rabbitmq:
server: "192.168.102.216"
port: 5672
username: "admin1"
password: "123qwe"
exchange: "yoho_datasync"
virtualHost: "/datasync"
spring:
datasource:
primary:
url: jdbc:mysql://192.168.102.219:3306/yh_pcms?useUnicode=true&amp;characterEncoding=UTF-8
url: jdbc:mysql://192.168.102.219:3306/yh_grass?useUnicode=true&amp;characterEncoding=UTF-8
username: yh_test
password: 9nm0icOwt6bMHjMusIfMLw==
driver-class-name: com.mysql.jdbc.Driver
secondary:
url: jdbc:mysql://192.168.102.219:3306/yh_grass?useUnicode=true&amp;characterEncoding=UTF-8
url: jdbc:mysql://192.168.102.219:3306/yh_pcms?useUnicode=true&amp;characterEncoding=UTF-8
username: yh_test
password: 9nm0icOwt6bMHjMusIfMLw==
driver-class-name: com.mysql.jdbc.Driver
... ...
rabbitmq:
server: "192.168.102.216"
port: 5672
username: "admin1"
password: "123qwe"
exchange: "yoho_datasync"
virtualHost: "/datasync"
spring:
datasource:
url: jdbc:mysql://192.168.102.219:3306/yh_pcms?useUnicode=true&amp;characterEncoding=UTF-8
... ...
rabbitmq:
server: "192.168.102.216"
port: 5672
username: "admin1"
password: "123qwe"
exchange: "yoho_datasync"
virtualHost: "/datasync"
spring:
datasource:
url: jdbc:mysql://192.168.102.219:3306/yh_pcms?useUnicode=true&amp;characterEncoding=UTF-8
... ...