In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to deploy a SpringBoot project using Docker in Idea". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to deploy a SpringBoot project using Docker in Idea".
Preface
The project requires:
Install the docker plug-in in dockeridea and configure docker a springboot project to create dockerfile
Download, install and configure docker download docker
Download address: download docker on the official website
Installation
All the way to the next step
Configuration path: check expose daemon on tcp://localhost:2375 without tls for settings-general
Set the image to improve the speed of downloading the image
Test whether the installation is successful
Idea installs the docker plug-in
1. Install the docker plug-in in idea: file--plugins--marketplace search docker installation
two。 Configure the docker service
File-search docker-Select docker-add a docker to the right
Connection successful display indicates that the docker link is successful
Create springboot project, modify pom.xmlspringmvc project, visit localhost:8080/hello to display hello string
1. Configure the pom.xml file
two。 Create a docker file
Create a docker folder under the main folder, and create a dockerfile file in it. Xxxxx.jar is packaged with maven and copied in.
Contents of dockerfile file:
Maven is packaged and the jar package under its target directory is copied into the docker directory.
Configure dockerfile configuration
Running
Run successfully
test
Use docker to check if the container starts:
Test whether the project is started:
Thank you for reading, the above is the content of "how to use Docker to deploy SpringBoot project in Idea". After the study of this article, I believe you have a deeper understanding of how to use Docker to deploy SpringBoot project in Idea, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.