change regi
This commit is contained in:
@@ -102,4 +102,4 @@ options:
|
|||||||
env:
|
env:
|
||||||
# # location/name of GKE cluster (used by all kubectl commands)
|
# # location/name of GKE cluster (used by all kubectl commands)
|
||||||
- CLOUDSDK_COMPUTE_ZONE=asia-northeast1-a
|
- CLOUDSDK_COMPUTE_ZONE=asia-northeast1-a
|
||||||
- CLOUDSDK_CONTAINER_CLUSTER=standard-cluster-1
|
- CLOUDSDK_CONTAINER_CLUSTER=cluster-1
|
||||||
@@ -5,6 +5,7 @@ import com.fasterxml.jackson.databind.DeserializationFeature;
|
|||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.cloud.stream.annotation.StreamListener;
|
import org.springframework.cloud.stream.annotation.StreamListener;
|
||||||
|
import org.springframework.messaging.handler.annotation.Headers;
|
||||||
import org.springframework.messaging.handler.annotation.Payload;
|
import org.springframework.messaging.handler.annotation.Payload;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
@@ -15,9 +16,6 @@ import java.util.Optional;
|
|||||||
@Service
|
@Service
|
||||||
public class ProductService {
|
public class ProductService {
|
||||||
|
|
||||||
@Autowired
|
|
||||||
ProductRepository productRepository;
|
|
||||||
|
|
||||||
@StreamListener(KafkaProcessor.INPUT)
|
@StreamListener(KafkaProcessor.INPUT)
|
||||||
public void onOrderPlaced(@Payload String message) {
|
public void onOrderPlaced(@Payload String message) {
|
||||||
System.out.println("##### listener : " + message);
|
System.out.println("##### listener : " + message);
|
||||||
@@ -57,6 +55,9 @@ public class ProductService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
ProductRepository productRepository;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 상품 조회
|
* 상품 조회
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user