미해결
Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)
date 관련 에러입니다.
@ColumnDefault(value = "CURRENT_TIMESTAMP")현재 Order을 주입할때 자동으로 date가 생성이 안됩니다.{ "productId": "CATALOG-001", "qty": 10, "unitPrice": 1500, "totalPrice": 15000, "createdAt": null, "orderId": "e2672367-43bb-48bf-955f-d38917979c11" }server:
port: 0
spring:
application:
name: order-service
h2:
console:
enabled: true
settings:
web-allow-others: true
path: /h2-console
jpa:
hibernate:
ddl-auto: update
show-sql: true
generate-ddl: true
defer-datasource-initialization: true
datasource:
url: jdbc:h2:mem:testdb
driver-class-name: org.h2.Driver
eureka:
instance:
instance-id: ${spring.application.name}:${spring.application.instance_id:${random.value}}
client:
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: http://localhost:8761/eureka
logging:
level:
com.example.orderservice: DEBUG