Authored by liangyi.chen@yoho.cn

prfile区分环境

... ... @@ -2,10 +2,6 @@ package com.yoho.datasync.consumer.handler.constant;
public class DatasyncConstant {
public static final String ACTION_UPDATE = "0";
public static final String ACTION_DELETE = "1";
public static final String ACTION_INSERT = "2";
public interface SRCCHANNEL_TYPE {
Integer YOHO_GRASS = 1;
Integer YOHO_MARS = 2;
... ...
... ... @@ -5,7 +5,7 @@ import com.alibaba.fastjson.JSONObject;
import com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap;
import com.googlecode.concurrentlinkedhashmap.Weighers;
import com.yoho.datasync.consumer.common.EventEnum;
import com.yoho.datasync.consumer.handler.constant.DatasyncConstant;
import com.yoho.datasync.core.base.core.DatasyncConstant;
import com.yoho.datasync.core.base.message.MessageHelper;
import com.yoho.datasync.core.base.message.MqMessageEntity;
import com.yoho.datasync.core.base.message.TableConfigLoader;
... ...
... ... @@ -28,7 +28,7 @@ public class PublicUserPraiseService {
public void deletePublicUserPraise(PublicUserPraise publicUserPraise) {
PublicUserPraise publicUserPraiseFromDB = getPublicUserPraiseByUniqueKey(publicUserPraise);
if (publicUserPraiseFromDB != null) { //更新
if (publicUserPraiseFromDB != null) {
repository.deleteById(publicUserPraiseFromDB.getId());
}else{
logger.error("数据不存在praiseType={},uid={},targetId={}", publicUserPraise.getPraiseType(),
... ...
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&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&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&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&characterEncoding=UTF-8
username: yh_test
password: 9nm0icOwt6bMHjMusIfMLw==
driver-class-name: com.mysql.jdbc.Driver
profiles:
active: dev
... ...
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&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&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&characterEncoding=UTF-8
username: yh_test
password: 9nm0icOwt6bMHjMusIfMLw==
driver-class-name: com.mysql.jdbc.Driver
... ...