Problem analysis of using idea to build springboot initializer server

Problem analysis of using idea to build springboot initializer server

Problem Description

Recently, when I was building a springboot project, I found that idea could not create a new project when connected to the company's network cable. The browser could not access https://start.spring.io, but my mobile hotspot could access it normally. I guess it was blocked. So for convenience, I plan to build the service on my own server with reference to online tutorials. Here my server is Centos7.6

Construction process

First download the project and execute

git clone https://github.com/spring-io/initializr.git

If you don't have git, you need to install it first

sudo yum install git

In addition, the project depends on Maven, so you must first ensure that the Maven environment is installed on your computer. If there is no Maven, execute

wget http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz
tar -zxvf apache-maven-3.5.4-bin.tar.gz
sudo update-alternatives --install /usr/bin/mvn mvn /root/apache-maven-3.5.4/bin/mvn 1000

Then go to the downloaded folder

cd initializr

Execute the build command. This may be slow. Anyway, it took me a long time.

./mvnw clean install

Then go to the initializr-service folder and execute

cd initializr-service
../mvnw package

After the build is successful, a target folder will be generated in the initializr-service folder. Enter the target folder. Here I specify the port number as 8082. Of course, you can modify it as needed.

cd target
nohup java -jar initializr-service.jar --server.port=8082

Finally, select custom when initializing springboot, and then enter your http://ip:port .

Summarize

This is the end of this article about using idea to build a springboot initializer server. For more related idea initializer server content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • SpringBoot uploads files to the server directory at the same level as the jar package
  • Several ways to start springboot on the server (summary)
  • How to add https server in springboot
  • Springboot+TCP listening server construction process diagram

<<:  How MySQL Select Statement is Executed

>>:  Detailed explanation of basic syntax and data types of JavaScript

Recommend

About the pitfalls of implementing specified encoding in MySQL

Written in front Environment: MySQL 5.7+, MySQL d...

Vue element implements table adding, deleting and modifying data

This article shares the specific code of vue elem...

Detailed explanation of Nginx regular expressions

Nginx (engine x) is a high-performance HTTP and r...

How to monitor array changes in Vue

Table of contents Preface Source code Where do I ...

Native JS to achieve digital table special effects

This article shares a digital clock effect implem...

Blog Design Web Design Debut

The first web page I designed is as follows: I ha...

Implementation example of react project from new creation to deployment

Start a new project This article mainly records t...

The whole process of realizing website internationalization using Vite2 and Vue3

Table of contents Preface Install vue-i18n Config...

Docker renames the image name and TAG operation

When using docker images, images with both REPOSI...

Analysis of statement execution order of sql and MySQL

I encountered a problem today: Can I use the as a...

Implementation of navigation bar and drop-down menu in CSS

1. CSS Navigation Bar (1) Function of the navigat...

Detailed explanation of various usages of proxy_pass in nginx

Table of contents Proxy forwarding rules The firs...