foenye

Results 6 comments of foenye

> 感谢作者的回复,收获很大。我还有一个问题:作者你使用的是mongo作为数据库存储,这种文档型数据跟DDD架构结合起来的优势是显而易见的,但如果只是单纯的用mysql呢,这时候就会遇到聚合根不好拆分的问题,比如我只想要聚合根里面的某个对象,其他对象要不要都没关系,那么这种情况是不是还得把整个聚合根的所有信息都填充好才返回呢?这样做又会浪费资源,请问作者是怎么处理的? 他以前使用 [ID, JSON_CONTENT](https://github.com/e-commerce-sample/ecommerce-order-service/blob/master/ecommerce-order-service-api/src/main/java/com/ecommerce/order/order/OrderRepository.java) 如果不是强迫症,能够容忍聚合根头上顶着一堆注解建议使用jpa, 不过好像使用xml可以解决jpa注解的问题

> 考虑下把前后端个封进一个docker吗,这样直接compose up后端和数据redis啥的可以用compose的内联network也方便一点 可以自己搞,比如优秀的[GoogleContainerTools/jib](https://github.com/GoogleContainerTools/jib)了解一下

> I just spent an hour chasing my tail just to realise that this project requires JDK 17. Please add it to the read-me. It might also be a good...

> Yes but I had JDK 21 which it DOESN'T work with. I also use jdk21, which works very well. You can post the details you have encountered. Maybe I...

> Care to edit your description to elaborate a bit on what you're looking for? Thank you for your reply. My idea is to support Redis as an external event...

article-spring-application used spring properties to startup scan: ```properties spring.graphql.schema.locations=classpath*:graphql/**/ ```