Authored by liangyi.chen@yoho.cn

优化

... ... @@ -28,3 +28,7 @@ HELP.md
starter/target/classes/application.yml
common/target/
*.lst
dal/target/
handler/target/
service/target/
starter/target/
... ...
... ... @@ -9,8 +9,8 @@ public enum EventEnum {
GRASS_ARTICLE_UPDATE("dealData", "GrassArticleListener.dealData"),
GRASS_ARTICLE_BLOCK_UPDATE("dealData", "GrassArticleBlockListener.dealData"),
GRASS_ARTICLE_PRODUCT_UPDATE("dealData", "GrassArticleProductListener.dealData"),
GRASS_LABEL_GROUP_UPDATEDATA("DealData", "GrassLableGroupListener.dealData"),
GRASS_LABEL_UPDATEDATA("DealData", "GrassLableGroupListener.dealData"),
GRASS_LABEL_GROUP_UPDATEDATA("DealData", "GrassLabelGroupListener.dealData"),
GRASS_LABEL_UPDATEDATA("DealData", "GrassLabelGroupListener.dealData"),
GRASS_ARTICLE_LABEL_UPDATE("dealData", "GrassArticleLabelListener.dealData"),
GRASS_USER_ACHIEVE_UPDATE("dealData", "GrassUserAchieveListener.dealData");
... ...
... ... @@ -15,8 +15,8 @@ import org.springframework.stereotype.Component;
import javax.annotation.Resource;
@Component
@MqConsumerListerner(dbName = "yh_grass",tableName = "grass_lable_group")
public class GrassLableGroupListener extends AbstractMqListener<GrassLabelGroup> {
@MqConsumerListerner(dbName = "yh_grass",tableName = "grass_label_group")
public class GrassLabelGroupListener extends AbstractMqListener<GrassLabelGroup> {
@Resource
PublicLabelGroupService publicLabelGroupService;
... ... @@ -24,7 +24,7 @@ public class GrassLableGroupListener extends AbstractMqListener<GrassLabelGroup>
@Resource
AnnotationClassFactory annotationClassFactory;
private static final Logger logger = LoggerFactory.getLogger(GrassLableGroupListener.class);
private static final Logger logger = LoggerFactory.getLogger(GrassLabelGroupListener.class);
@Override
protected void deleteData(GrassLabelGroup sourceObject , Object checkResult) throws Exception {
... ...
... ... @@ -15,8 +15,8 @@ import org.springframework.stereotype.Component;
import javax.annotation.Resource;
@Component
@MqConsumerListerner(dbName = "yh_grass",tableName = "grass_lable")
public class GrassLableListener extends AbstractMqListener<GrassLabel> {
@MqConsumerListerner(dbName = "yh_grass",tableName = "grass_label")
public class GrassLabelListener extends AbstractMqListener<GrassLabel> {
@Resource
PublicLabelService publicLabelService;
... ... @@ -24,7 +24,7 @@ public class GrassLableListener extends AbstractMqListener<GrassLabel> {
@Resource
AnnotationClassFactory annotationClassFactory;
private static final Logger logger = LoggerFactory.getLogger(GrassLableListener.class);
private static final Logger logger = LoggerFactory.getLogger(GrassLabelListener.class);
@Override
protected void deleteData(GrassLabel sourceObject , Object checkResult) throws Exception {
... ...
... ... @@ -98,13 +98,4 @@
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
... ...
... ... @@ -28,5 +28,25 @@
</dependency>
</dependencies>
<build>
<finalName>yoho-datasync-consumer</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.consumer.starter.YohoDatasyncConsumerApplication</mainClass>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
... ...
server:
servlet:
context-path: /datasync-consumer
spring:
profiles:
active: dev
... ...
... ... @@ -38,7 +38,7 @@
</filter>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 按天回滚 daily -->
<fileNamePattern>/Data/logs/yoho-datasync-producer/%d{yyyy-MM-dd}/info-log.log</fileNamePattern>
<fileNamePattern>/Data/logs/yoho-datasync-consumer/%d{yyyy-MM-dd}/info-log.log</fileNamePattern>
<!-- 日志最大的保存天数 -->
<maxHistory>${maxHistory}</maxHistory>
</rollingPolicy>
... ...
rabbitmq:
server: "192.168.102.216"
server: yohoops-rabbit-common-service
port: 5672
username: "admin1"
password: "123qwe"
... ... @@ -8,7 +8,10 @@ rabbitmq:
spring:
datasource:
url: jdbc:mysql://192.168.102.219:3306/yh_pcms?useUnicode=true&amp;characterEncoding=UTF-8
url: jdbc:mysql://read.cms.yohoops.org:3306/yh_pcms?useUnicode=true&amp;characterEncoding=UTF-8
username: yh_test
password: 9nm0icOwt6bMHjMusIfMLw==
driver-class-name: com.mysql.jdbc.Driver
logging:
config: classpath:logback-boot.xml
\ No newline at end of file
... ...
rabbitmq:
server: "192.168.102.216"
server: yohoops-rabbit-common-service
port: 5672
username: "admin1"
password: "123qwe"
... ... @@ -8,7 +8,10 @@ rabbitmq:
spring:
datasource:
url: jdbc:mysql://192.168.102.219:3306/yh_pcms?useUnicode=true&amp;characterEncoding=UTF-8
url: jdbc:mysql://read.cms.yohoops.org:3306/yh_pcms?useUnicode=true&amp;characterEncoding=UTF-8
username: yh_test
password: 9nm0icOwt6bMHjMusIfMLw==
driver-class-name: com.mysql.jdbc.Driver
logging:
config: classpath:logback-boot.xml
... ...