Refactor samples
This commit is contained in:
@@ -8,11 +8,11 @@
|
||||
<version>2.1.4.RELEASE</version>
|
||||
<relativePath></relativePath>
|
||||
</parent>
|
||||
<groupId>com.example</groupId>
|
||||
<groupId>io.spring.dataflow.sample</groupId>
|
||||
<artifactId>usage-cost-logger</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>usage-cost-logger</name>
|
||||
<description>Demo project for Spring Boot</description>
|
||||
<description>Sample project for Spring Cloud Stream Sink</description>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package com.example.demo;
|
||||
package io.spring.dataflow.sample;
|
||||
|
||||
import com.example.demo.UsageCostLoggerApplication;
|
||||
import com.example.demo.domain.UsageCostDetail;
|
||||
import io.spring.dataflow.sample.domain.UsageCostDetail;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.example.demo;
|
||||
package io.spring.dataflow.sample;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.example.demo.domain;
|
||||
package io.spring.dataflow.sample.domain;
|
||||
|
||||
public class UsageCostDetail {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.example.demo;
|
||||
package io.spring.dataflow.sample;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -8,11 +8,11 @@
|
||||
<version>2.1.4.RELEASE</version>
|
||||
<relativePath></relativePath>
|
||||
</parent>
|
||||
<groupId>com.example</groupId>
|
||||
<groupId>io.spring.dataflow.sample</groupId>
|
||||
<artifactId>usage-cost-processor</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>usage-cost-processor</name>
|
||||
<description>Demo project for Spring Boot</description>
|
||||
<description>Sample project for Spring Cloud Stream Processor</description>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.example.demo;
|
||||
package io.spring.dataflow.sample;
|
||||
|
||||
import com.example.demo.domain.UsageCostDetail;
|
||||
import com.example.demo.domain.UsageDetail;
|
||||
import io.spring.dataflow.sample.domain.UsageCostDetail;
|
||||
import io.spring.dataflow.sample.domain.UsageDetail;
|
||||
|
||||
import org.springframework.cloud.stream.annotation.EnableBinding;
|
||||
import org.springframework.cloud.stream.annotation.StreamListener;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.example.demo;
|
||||
package io.spring.dataflow.sample;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.example.demo.domain;
|
||||
package io.spring.dataflow.sample.domain;
|
||||
|
||||
public class UsageCostDetail {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.example.demo.domain;
|
||||
package io.spring.dataflow.sample.domain;
|
||||
|
||||
public class UsageDetail {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.example.demo;
|
||||
package io.spring.dataflow.sample;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -8,11 +8,11 @@
|
||||
<version>2.1.4.RELEASE</version>
|
||||
<relativePath></relativePath>
|
||||
</parent>
|
||||
<groupId>com.example</groupId>
|
||||
<groupId>io.spring.dataflow.sample</groupId>
|
||||
<artifactId>usage-detail-sender</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>usage-detail-sender</name>
|
||||
<description>Demo project for Spring Boot</description>
|
||||
<description>Sample project for Spring Cloud Stream Source</description>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.example.demo;
|
||||
package io.spring.dataflow.sample;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import com.example.demo.domain.UsageDetail;
|
||||
import io.spring.dataflow.sample.domain.UsageDetail;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.cloud.stream.annotation.EnableBinding;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.example.demo;
|
||||
package io.spring.dataflow.sample;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.example.demo.domain;
|
||||
package io.spring.dataflow.sample.domain;
|
||||
|
||||
public class UsageDetail {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.example.demo;
|
||||
package io.spring.dataflow.sample;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
Reference in New Issue
Block a user