All Projects → HechengLi → Docker_springboot_tomcat_mysql_demo

HechengLi / Docker_springboot_tomcat_mysql_demo

How to setup docker with SpringBoot on Tomcat and MySQL

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Docker springboot tomcat mysql demo

Tutorial
Java全栈知识架构体系总结
Stars: ✭ 407 (+362.5%)
Mutual labels:  mysql, springboot, tomcat
My Blog
🌴A simple & beautiful blogging system implemented with spring-boot & thymeleaf & mybatis My Blog 是由 SpringBoot + Mybatis + Thymeleaf 等技术实现的 Java 博客系统,页面美观、功能齐全、部署简单及完善的代码,一定会给使用者无与伦比的体验
Stars: ✭ 2,400 (+2627.27%)
Mutual labels:  mysql, springboot, docker-compose
Restfeel
RESTFeel: 一个企业级的API管理&测试平台。RESTFeel帮助你设计、开发、测试您的API。
Stars: ✭ 59 (-32.95%)
Mutual labels:  springboot, tomcat
Mi
迁移改名为MI-S
Stars: ✭ 61 (-30.68%)
Mutual labels:  mysql, springboot
Supermarket
设计精良的网上商城系统,包括前端、后端、数据库、负载均衡、数据库缓存、分库分表、读写分离、全文检索、消息队列等,使用SpringCloud框架,基于Java开发。该项目可部署到服务器上,不断完善中……
Stars: ✭ 1,278 (+1352.27%)
Mutual labels:  mysql, springboot
Netkiller.github.io
Netkiller Free ebook - 免费电子书
Stars: ✭ 861 (+878.41%)
Mutual labels:  mysql, tomcat
Webpersonal
WebPersonal 是基于 Spring Boot + Vue Admin Template 搭建的个人网站,采用Docker容器化部署。包括个人简历、权限管理、相册等功能,持续更新,您的 Star⭐,就是我最大的动力(●'◡'●)
Stars: ✭ 28 (-68.18%)
Mutual labels:  mysql, springboot
Mall Learning
mall学习教程,架构、业务、技术要点全方位解析。mall项目(40k+star)是一套电商系统,使用现阶段主流技术实现。涵盖了SpringBoot 2.3.0、MyBatis 3.4.6、Elasticsearch 7.6.2、RabbitMQ 3.7.15、Redis 5.0、MongoDB 4.2.5、Mysql5.7等技术,采用Docker容器化部署。
Stars: ✭ 10,236 (+11531.82%)
Mutual labels:  mysql, springboot
Newbee Mall
🔥 🎉newbee-mall 项目(新蜂商城)是一套电商系统,包括 newbee-mall 商城系统及 newbee-mall-admin 商城后台管理系统,基于 Spring Boot 2.X 及相关技术栈开发。 前台商城系统包含首页门户、商品分类、新品上线、首页轮播、商品推荐、商品搜索、商品展示、购物车、订单结算、订单流程、个人订单管理、会员中心、帮助中心等模块。 后台管理系统包含数据面板、轮播图管理、商品管理、订单管理、会员管理、分类管理、设置等模块。
Stars: ✭ 8,319 (+9353.41%)
Mutual labels:  mysql, springboot
Directus Docker
Directus 6 Docker — Legacy Container [EOL]
Stars: ✭ 68 (-22.73%)
Mutual labels:  mysql, docker-compose
Javaall
这是一个Java开发宝典,所有的Java技术都在这里,用心学习,努力提升!
Stars: ✭ 67 (-23.86%)
Mutual labels:  mysql, springboot
Uranus
Hierarchical Memo & Task Web-App
Stars: ✭ 71 (-19.32%)
Mutual labels:  docker-compose, tomcat
Unilinks
Plataforma para encontrar os links das aulas virtuais gravadas.
Stars: ✭ 25 (-71.59%)
Mutual labels:  mysql, docker-compose
Szt Bigdata
深圳地铁大数据客流分析系统🚇🚄🌟
Stars: ✭ 826 (+838.64%)
Mutual labels:  mysql, springboot
Mrseedbox
[unmaintained] A Containerized Seedbox with Embedded Media Player
Stars: ✭ 30 (-65.91%)
Mutual labels:  mysql, docker-compose
Geek Framework
基于SpringBoot+Shiro+Redis+Jwt+Thymeleaf+MyBatis 开发的后台用户、角色、权限、会员管理、RestFul、Token和前台用户登录注册以及前后台用户分离的脚手架,技术交流请加QQ群:805442966
Stars: ✭ 804 (+813.64%)
Mutual labels:  mysql, tomcat
Bookstoreapp Distributed Application
Ecommerce project is being developed using Spring Boot Microservices and Spring Cloud (Backend) and React (Frontend). Splitting the Ecommerce functionality into various individual microservices so that they can be distributed, scale really well and make use of resources efficiently.
Stars: ✭ 63 (-28.41%)
Mutual labels:  mysql, docker-compose
Docker Tutorial
Code for a creating a docker app with Flask and MySQL tutorial
Stars: ✭ 73 (-17.05%)
Mutual labels:  mysql, docker-compose
Mall Tiny
mall-tiny是一款基于SpringBoot+MyBatis-Plus的快速开发脚手架,拥有完整的权限管理功能,可对接Vue前端,开箱即用。
Stars: ✭ 738 (+738.64%)
Mutual labels:  mysql, springboot
Mall Swarm
mall-swarm是一套微服务商城系统,采用了 Spring Cloud Hoxton & Alibaba、Spring Boot 2.3、Oauth2、MyBatis、Docker、Elasticsearch、Kubernetes等核心技术,同时提供了基于Vue的管理后台方便快速搭建系统。mall-swarm在电商业务的基础集成了注册中心、配置中心、监控中心、网关等系统功能。文档齐全,附带全套Spring Cloud教程。
Stars: ✭ 7,874 (+8847.73%)
Mutual labels:  mysql, springboot

Docker with SpringBoot, tomcat and MySQL

Read how to build this project from scratch here -> tutorial
(It's very messy right now)

How to run this demo?

Step 0 - Requirements

Here are the tools you need:

  1. Docker (duh)
  2. Eclipse (I'm using Eclipse Photon)
  3. Java10

Step 1 - Clone this repo

git clone https://github.com/HechengLi/Docker_SpringBoot_Tomcat_MySQL_Demo.git

Step 2 - Import TianMiao into eclipse as a maven project

Open your eclipse
On the taskbar click File -> Import -> Maven -> Existing Maven Project
Select the folder TianMiao the Root Directory (You should see /pom.xml com.example:TianMiao:0.0.1-SNAPSHOT:war in Projects)
Click Finish

Step 3 - Build TianMiao as a war file

Right click TianMiao in Package Explorer -> Run As -> Run Configurations
Type 'clean install -Dmaven.test.skip=true' in Goals
Click Apply then Run (you should have TianMiao.war under Docker_SpringBoot_Tomcat_MySQL\TianMiao\target)

Step 4 - Run the project with docker

Open your commandline, cd to the git directory
Make sure you have docker app running
Run 'docker-compose -f stack.yml up' (add -d if you want it to run in background)

Step 5 - Rerun if there's an error on first run

If you get an error while starting tomcat, it probably is because the docker container running Tomcat doesn't wait for MySQL to finish running it's setup script.
Wait for MySQL to finish running its script (it will log ...ready for connections...)
Stop all containers and start again should fix the problem.

Step 6 - Check if it works (suggestion - use postman)

Send Get Request to 'http://localhost:8080/TianMiao/api/users' to retrive data
Send Post Request to 'http://localhost:8080/TianMiao/api/users' with json {'username': 'anyusername'} to add data

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].