e-commerce-sample / ecommerce-order-service Goto Github PK
View Code? Open in Web Editor NEWOrder backend for Ecommerce.
License: Apache License 2.0
Order backend for Ecommerce.
License: Apache License 2.0
spring.rabbitmq.host=192.168.0.20
其他网内ip的话,无法访问rabbitmq,默认连接:主机名:5672
createOrder方法中的item.getItemPrice()是前端传过来的么?这样合理么?
请大神帮忙看看,不论是run.sh还是local_build都出错,都是docker-compose up出错。。。
nick@nick-macpro [14时48分22秒] [~/e-commerce-sample/ecommerce-order-service] [master]
-> % ./run.sh
Task :ecommerce-order-service-api:composeUp
--no-ansi option is deprecated and will be removed in future versions. Use--ansi never
instead.
Creating network "e45046dc26c9167a0e2ab0b266bccc16_ecommerce-order-service-api__ecommerce-order-net" with driver "bridge"
Creating volume "e45046dc26c9167a0e2ab0b266bccc16_ecommerce-order-service-api__ecommerce-order-mysql-data" with local driver
Pulling mysql (mysql:5.7.23)...
5.7.23: Pulling from library/mysql
Digest: sha256:953b53af26805d82eca95f28df6ae82e8e15cd1e587b4c5cd06a78be80e84050
Status: Downloaded newer image for mysql:5.7.23
Creating ecommerce-order-mysql ...
Creating ecommerce-order-mysql ... done
unknown flag: --no-ansi option is deprecated and will be removed in future versions. Use--ansi never
instead.
See 'docker inspect --help'.
--no-ansi option is deprecated and will be removed in future versions. Use--ansi never
instead.
Removing ecommerce-order-mysql ...
Removing ecommerce-order-mysql ... done
Removing network e45046dc26c9167a0e2ab0b266bccc16_ecommerce-order-service-api__ecommerce-order-net
Removing volume e45046dc26c9167a0e2ab0b266bccc16_ecommerce-order-service-api__ecommerce-order-mysql-data
Task :ecommerce-order-service-api:composeUp FAILED
FAILURE: Build failed with an exception.
Exit-code 125 when calling /usr/local/bin/docker, stdout:
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1m 49s
8 actionable tasks: 6 executed, 2 up-to-date
nick@nick-macpro [14时54分38秒] [~/e-commerce-sample/ecommerce-order-service] [master]
我的环境:
MacOs
idea 2021.1
docker Desktop3.5.1
我看到博客中有提到需要监听死信事件,然后重新发送的说法,在demo中却没看到相关实现。是我看漏了?
Order对象使用了Builder模式,被lombok的@builder修饰,在OrderRepository中的byId方法中使用了return (rs, rowNum) -> objectMapper.readValue(rs.getString("JSON_CONTENT"), Order.class);
由于使用Builder模式,会生成全参数的构造函数,在对此对象赋值的时候,报错,没有无参的构造函数。
盼复!
你好,我想请教一下,用户的权限是应该放在application层还是domain层?比如普通用户只能修改自己的订单,管理员可以修改所有人的订单。这种规则,如果放在domain层,每个业务方法都需要传入一个当前用户,而且user属于另外一个聚合域。放在application层,又会使业务规则,散落到domain之外。还请不吝赐教。
..直接看代码看不太懂
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.