SpringCloud-Shop:基于Spring Boot,Spring Cloud的微服务商城demo

上传者: 42171208 | 上传时间: 2022-05-12 14:40:39 | 文件大小: 85KB | 文件类型: ZIP
基于Spring Boot,Spring Cloud的微服务应用 本项目内容基于Spring Boot,Spring Cloud开发。实现电商应用基础服务,包括用户服务,商品服务,订单服务,功能包括用户注册,用户鉴权,商品列表,商品详情,下单,查看订单列表,订单详情。 使用Spring Boot,Spring JPA实现可持续服务的CRUD 单元测试, 符合RESTful API规范 实现服务注册发现组件 实现服务网关组件 实现服务的高可用 服务介绍 api-gateway:服务网关 eureka-server:服务注册中心 config-server:分布式配置中心 类别服务:商品服务 订购服务:订单服务 用户服务:用户服务 web-app:网络服务 开发环境及项目框架介绍 IDE:Intellij IDEA 缓存服务器(数据库):Redis 数据库:MySQL( ) 项目框架:Spring Boot + Spring Cloud 演示步骤 1,开启Redis和MySQL服务 2,分别启动各个微服务:EurekaServerApplication,ApiGatewayApplica

文件下载

资源详情

[{"title":"( 92 个子文件 85KB ) SpringCloud-Shop:基于Spring Boot,Spring Cloud的微服务商城demo","children":[{"title":"SpringCloud-Shop-master","children":[{"title":"pom.xml <span style='color:#111;'> 4.28KB </span>","children":null,"spread":false},{"title":"config-server","children":[{"title":"pom.xml <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":[{"title":"application.properties <span style='color:#111;'> 487B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"kedacom","children":[{"title":"configserver","children":[{"title":"ConfigServerApplication.java <span style='color:#111;'> 701B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 249B </span>","children":null,"spread":false}],"spread":true},{"title":"dbkeda.sql <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false},{"title":"api-gateway","children":[{"title":"pom.xml <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":[{"title":"bootstrap.properties <span style='color:#111;'> 270B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"kedacom","children":[{"title":"apigateway","children":[{"title":"AccessFilter.java <span style='color:#111;'> 2.46KB </span>","children":null,"spread":false},{"title":"config","children":[{"title":"SecurityConfig.java <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false}],"spread":false},{"title":"ApiGatewayApplication.java <span style='color:#111;'> 700B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 249B </span>","children":null,"spread":false}],"spread":true},{"title":"_config.yml <span style='color:#111;'> 25B </span>","children":null,"spread":false},{"title":"user-service","children":[{"title":"pom.xml <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":[{"title":"bootstrap.properties <span style='color:#111;'> 294B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"kedacom","children":[{"title":"user","children":[{"title":"config","children":[{"title":"RedisSessionConfig.java <span style='color:#111;'> 772B </span>","children":null,"spread":false}],"spread":false},{"title":"repository","children":[{"title":"UserRepository.java <span style='color:#111;'> 528B </span>","children":null,"spread":false}],"spread":false},{"title":"model","children":[{"title":"User.java <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false}],"spread":false},{"title":"api","children":[{"title":"UserController.java <span style='color:#111;'> 3.59KB </span>","children":null,"spread":false}],"spread":false},{"title":"UserApplication.java <span style='color:#111;'> 544B </span>","children":null,"spread":false},{"title":"service","children":[{"title":"UserService.java <span style='color:#111;'> 355B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"UserServiceImpl.java <span style='color:#111;'> 607B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 249B </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"category-service","children":[{"title":"pom.xml <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":[{"title":"bootstrap.properties <span style='color:#111;'> 316B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"kedacom","children":[{"title":"category","children":[{"title":"repository","children":[{"title":"CategoryRepository.java <span style='color:#111;'> 442B </span>","children":null,"spread":false}],"spread":false},{"title":"model","children":[{"title":"Category.java <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false}],"spread":false},{"title":"api","children":[{"title":"CategoryController.java <span style='color:#111;'> 3.42KB </span>","children":null,"spread":false}],"spread":false},{"title":"CategoryApplication.java <span style='color:#111;'> 500B </span>","children":null,"spread":false},{"title":"service","children":[{"title":"CategoryService.java <span style='color:#111;'> 262B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"CategoryServiceImpl.java <span style='color:#111;'> 1003B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 249B </span>","children":null,"spread":false}],"spread":true},{"title":"order-service","children":[{"title":"pom.xml <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":[{"title":"bootstrap.properties <span style='color:#111;'> 295B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"kedacom","children":[{"title":"order","children":[{"title":"config","children":[{"title":"RedisSessionConfig.java <span style='color:#111;'> 220B </span>","children":null,"spread":false}],"spread":false},{"title":"repository","children":[{"title":"OrderCategoryRepository.java <span style='color:#111;'> 298B </span>","children":null,"spread":false},{"title":"OrderRepository.java <span style='color:#111;'> 274B </span>","children":null,"spread":false}],"spread":false},{"title":"model","children":[{"title":"OrderCategory.java <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"Order.java <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false}],"spread":false},{"title":"OrderApplication.java <span style='color:#111;'> 708B </span>","children":null,"spread":false},{"title":"api","children":[{"title":"OrderController.java <span style='color:#111;'> 823B </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"OrderService.java <span style='color:#111;'> 146B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"OrderServiceImpl.java <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 249B </span>","children":null,"spread":false}],"spread":true},{"title":"eureka-server","children":[{"title":"pom.xml <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":[{"title":"application.properties <span style='color:#111;'> 292B </span>","children":null,"spread":false}],"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"kedacom","children":[{"title":"eurekaserver","children":[{"title":"EurekaServerApplication.java <span style='color:#111;'> 423B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 249B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 572B </span>","children":null,"spread":false},{"title":"commons","children":[{"title":"pom.xml <span style='color:#111;'> 822B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":[{"title":"application.properties <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"kedacom","children":[{"title":"commons","children":[{"title":"model","children":[{"title":"User.java <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false}],"spread":false},{"title":"api","children":[{"title":"Error.java <span style='color:#111;'> 617B </span>","children":null,"spread":false},{"title":"ServiceUnAvailableException.java <span style='color:#111;'> 400B </span>","children":null,"spread":false},{"title":"Result.java <span style='color:#111;'> 779B </span>","children":null,"spread":false},{"title":"ResourceNotFoundException.java <span style='color:#111;'> 401B </span>","children":null,"spread":false}],"spread":false},{"title":"util","children":[{"title":"ResultUtil.java <span style='color:#111;'> 443B </span>","children":null,"spread":false}],"spread":false},{"title":"vo","children":[{"title":"OrderVo.java <span style='color:#111;'> 1010B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":".gitignore <span style='color:#111;'> 249B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 4.56KB </span>","children":null,"spread":false},{"title":"web-app","children":[{"title":"pom.xml <span style='color:#111;'> 3.58KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"kedacom","children":[{"title":"keda","children":[{"title":"WebAppTest.java <span style='color:#111;'> 4.10KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"main","children":[{"title":"resources","children":[{"title":"bootstrap.properties <span style='color:#111;'> 289B </span>","children":null,"spread":false},{"title":"log4j.properties <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false}],"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"kedacom","children":[{"title":"keda","children":[{"title":"exception","children":[{"title":"MyException.java <span style='color:#111;'> 452B </span>","children":null,"spread":false}],"spread":false},{"title":"config","children":[{"title":"Constants.java <span style='color:#111;'> 497B </span>","children":null,"spread":false},{"title":"RedisSessionConfig.java <span style='color:#111;'> 521B </span>","children":null,"spread":false},{"title":"FeignBeanFactoryPostProcessor.java <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"CookieConfig.java <span style='color:#111;'> 663B </span>","children":null,"spread":false},{"title":"RootConfig.java <span style='color:#111;'> 499B </span>","children":null,"spread":false}],"spread":false},{"title":"aspect","children":[{"title":"HttpAspect.java <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false}],"spread":false},{"title":"manager","children":[{"title":"TokenManager.java <span style='color:#111;'> 786B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"RedisTokenManager.java <span style='color:#111;'> 2.46KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"WebApplication.java <span style='color:#111;'> 989B </span>","children":null,"spread":false},{"title":"model","children":[{"title":"TokenModel.java <span style='color:#111;'> 584B </span>","children":null,"spread":false}],"spread":false},{"title":"handle","children":[{"title":"ExceptionHandle.java <span style='color:#111;'> 1003B </span>","children":null,"spread":false}],"spread":false},{"title":"annotation","children":[{"title":"Authorization.java <span style='color:#111;'> 431B </span>","children":null,"spread":false},{"title":"CurrentUser.java <span style='color:#111;'> 417B </span>","children":null,"spread":false}],"spread":false},{"title":"controller","children":[{"title":"HomeController.java <span style='color:#111;'> 1020B </span>","children":null,"spread":false},{"title":"TokenController.java <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"OrderController.java <span style='color:#111;'> 928B </span>","children":null,"spread":false},{"title":"CookieController.java <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"UserController.java <span style='color:#111;'> 4.23KB </span>","children":null,"spread":false},{"title":"CategoryController.java <span style='color:#111;'> 836B </span>","children":null,"spread":false},{"title":"HelloController.java <span style='color:#111;'> 584B </span>","children":null,"spread":false},{"title":"BaseController.java <span style='color:#111;'> 717B </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"OrderService.java <span style='color:#111;'> 454B </span>","children":null,"spread":false},{"title":"WebService.java <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"UserService.java <span style='color:#111;'> 454B </span>","children":null,"spread":false},{"title":"CategoryService.java <span style='color:#111;'> 421B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":".gitattributes <span style='color:#111;'> 87B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明