- ssm-user-web和ssm-user-provide(前后端通过http数据交互)
- ssm-order-consumer和ssm-user-provide(服务通过注册中心数据交互)
- ssm-order-consumer内部有熔断降级处理
- base-eureka:注册中心
- ssm-order:订单模块
- ssm-order-api:订单api模块
- ssm-order-consumer:订单消费者模块
- ssm-order-provide:订单服务模块
- ssm-user:用户模块
- ssm-user-api:用户api模块
- ssm-user-provide:用户服务模块(通过ssm-order-consumer访问订单访问数据)
- ssm-user-web:用户前端页面
1、base-eureka:访问注册中心,http://localhost:2000/
- http://localhost:2111/order/list
- http://localhost:2111/order/getone/1
- http://localhost:2111/order/delete/1
- http://localhost:2222/client/list
- http://localhost:2222/client/getone/1
- http://localhost:2222/client/delete/1
- http://localhost:2333/user/list
- http://localhost:2333/user/getone/1
- http://localhost:2333/user/delete/1
spring.datasource.url = jdbc:mysql://localhost:3306/demo_cloud
spring.datasource.username = root
spring.datasource.password = 123123
ssm_user:user_id, user_name, user_desc, order_id
ssm_order:order_id, order_title, order_mark