spring-boot-docker-rest-api:使用Spring Boot和MySQL构建RESTFul API Services,并使用Docker进行容器化

上传者: 42117082 | 上传时间: 2023-10-13 01:02:05 | 文件大小: 94KB | 文件类型: ZIP
Spring启动docker-rest-api 使用Spring Boot,MySQL和Swagger文档以及使用Docker的容器化构建RESTFul API Services 执行步骤: 克隆/下载存储库。 在IDE(Netbeans / Intellij Idea / Eclipse)中打开项目,并为应用程序生成可执行的.jar文件。 生成.jar文件的另一种方法是通过Maven。 将docker-compose-sample.yml文件重命名为docker -compose.yml 。 打开docker-compose.yml文件,并添加MySQL(db)环境参数值和Spring REST API(spring-rest-api)环境参数值,用于从应用程序进行数据库连接。 打开终端并转到docker-compose.yml所在的目录,然后在-d(分离模式)下运行以下命

文件下载

资源详情

[{"title":"( 59 个子文件 94KB ) spring-boot-docker-rest-api:使用Spring Boot和MySQL构建RESTFul API Services,并使用Docker进行容器化","children":[{"title":"spring-boot-docker-rest-api-master","children":[{"title":".gitignore <span style='color:#111;'> 575B </span>","children":null,"spread":false},{"title":"docker-compose-sample.yml <span style='color:#111;'> 497B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"rest-api","children":[{"title":".gitignore <span style='color:#111;'> 268B </span>","children":null,"spread":false},{"title":"Dockerfile <span style='color:#111;'> 215B </span>","children":null,"spread":false},{"title":".mvn","children":[{"title":"wrapper","children":[{"title":"maven-wrapper.jar <span style='color:#111;'> 46.49KB </span>","children":null,"spread":false},{"title":"maven-wrapper.properties <span style='color:#111;'> 110B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":[{"title":"application-dev.yml <span style='color:#111;'> 602B </span>","children":null,"spread":false},{"title":"application-prod.yml <span style='color:#111;'> 355B </span>","children":null,"spread":false},{"title":"application.properties <span style='color:#111;'> 80B </span>","children":null,"spread":false},{"title":"schema.sql <span style='color:#111;'> 618B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"abhishekd","children":[{"title":"restapi","children":[{"title":"api","children":[{"title":"v1","children":[{"title":"model","children":[{"title":"CustomerListDTO.java <span style='color:#111;'> 483B </span>","children":null,"spread":false},{"title":"VendorDTO.java <span style='color:#111;'> 751B </span>","children":null,"spread":false},{"title":"CustomerDTO.java <span style='color:#111;'> 1020B </span>","children":null,"spread":false},{"title":"CategoryDTO.java <span style='color:#111;'> 613B </span>","children":null,"spread":false},{"title":"VendorListDTO.java <span style='color:#111;'> 470B </span>","children":null,"spread":false},{"title":"CategoryListDTO.java <span style='color:#111;'> 424B </span>","children":null,"spread":false}],"spread":false},{"title":"mapper","children":[{"title":"VendorMapper.java <span style='color:#111;'> 477B </span>","children":null,"spread":false},{"title":"CustomerMapper.java <span style='color:#111;'> 506B </span>","children":null,"spread":false},{"title":"CategoryMapper.java <span style='color:#111;'> 506B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"domain","children":[{"title":"Customer.java <span style='color:#111;'> 430B </span>","children":null,"spread":false},{"title":"Vendor.java <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":"Category.java <span style='color:#111;'> 404B </span>","children":null,"spread":false}],"spread":false},{"title":"bootstrap","children":[{"title":"Bootstrap.java <span style='color:#111;'> 4.12KB </span>","children":null,"spread":false}],"spread":false},{"title":"schedulers","children":[{"title":"ScheduledTasks.java <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false}],"spread":false},{"title":"RestApiApplication.java <span style='color:#111;'> 400B </span>","children":null,"spread":false},{"title":"exceptions","children":[{"title":"RestResponseEntityExceptionHandler.java <span style='color:#111;'> 2.87KB </span>","children":null,"spread":false},{"title":"ErrorInfo.java <span style='color:#111;'> 849B </span>","children":null,"spread":false},{"title":"ResourceNotFoundException.java <span style='color:#111;'> 644B </span>","children":null,"spread":false}],"spread":false},{"title":"services","children":[{"title":"VendorServiceImpl.java <span style='color:#111;'> 5.02KB </span>","children":null,"spread":false},{"title":"CustomerService.java <span style='color:#111;'> 698B </span>","children":null,"spread":false},{"title":"CategoryService.java <span style='color:#111;'> 331B </span>","children":null,"spread":false},{"title":"CategoryServiceImpl.java <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"CustomerServiceImpl.java <span style='color:#111;'> 4.79KB </span>","children":null,"spread":false},{"title":"VendorService.java <span style='color:#111;'> 618B </span>","children":null,"spread":false}],"spread":false},{"title":"config","children":[{"title":"SwaggerConfig.java <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false}],"spread":false},{"title":"repositories","children":[{"title":"CustomerRepository.java <span style='color:#111;'> 507B </span>","children":null,"spread":false},{"title":"CategoryRepository.java <span style='color:#111;'> 672B </span>","children":null,"spread":false},{"title":"VendorRepository.java <span style='color:#111;'> 349B </span>","children":null,"spread":false}],"spread":false},{"title":"controllers","children":[{"title":"v1","children":[{"title":"CustomerController.java <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false},{"title":"CategoryController.java <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"VendorController.java <span style='color:#111;'> 3.80KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"resources","children":[{"title":"application.properties <span style='color:#111;'> 173B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"abhishekd","children":[{"title":"restapi","children":[{"title":"api","children":[{"title":"v1","children":[{"title":"mapper","children":[{"title":"CustomerMapperTest.java <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"CategoryControllerMapperTest.java <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"VendorMapperTest.java <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"services","children":[{"title":"CategoryControllerServiceTest.java <span style='color:#111;'> 1.87KB </span>","children":null,"spread":false},{"title":"VendorServiceTest.java <span style='color:#111;'> 3.44KB </span>","children":null,"spread":false},{"title":"CustomerServiceTest.java <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false},{"title":"CustomerServiceImplIT.java <span style='color:#111;'> 2.43KB </span>","children":null,"spread":false}],"spread":false},{"title":"RestApiApplicationTests.java <span style='color:#111;'> 395B </span>","children":null,"spread":false},{"title":"controllers","children":[{"title":"v1","children":[{"title":"CategoryControllerTest.java <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false},{"title":"VendorControllerTest.java <span style='color:#111;'> 4.74KB </span>","children":null,"spread":false},{"title":"CustomerControllerTest.java <span style='color:#111;'> 5.08KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"mvnw <span style='color:#111;'> 6.32KB </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 4.39KB </span>","children":null,"spread":false},{"title":"mvnw.cmd <span style='color:#111;'> 4.88KB </span>","children":null,"spread":false},{"title":"Procfile <span style='color:#111;'> 50B </span>","children":null,"spread":false}],"spread":true},{"title":"system.properties <span style='color:#111;'> 25B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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