Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Java Learning (essay)-introduction to Spring boot and Grad

Shulou Source: shulou.com Published: 2022-06-03 08:19:19 10月03日 Update

I. Spring boot correlation

What is 1.spring boot?

(1) provide a faster and more extensive entry experience for all Spring developers

(2) it can be used immediately out of the box, and those that are not suitable can be abandoned at any time.

(3) provide a series of non-functional features commonly used in large-scale projects.

(4) Zero configuration (XML configuration is not required, follow "convention is greater than configuration")

The relationship between 2.Spring boot and other frameworks

3. Quickly create Spring boot-based web projects and use Gradel to manage jar packages

Extract the project after successful creation

4.Gradel compiled project:

(1) first determine our development environment (java): java-version

(2) determine the environment of Gradle: gradle-v

(3) change to the root directory of the project:

Cd file path

Jump to file disk

(4) use gradle to compile the project: gradle build

The project was successfully built and compiled successfully, and observe the compiled project structure:

(5) run the project: java-jar build/libs/jar file name

(6) browser access address: http://localhost:8080/index.do

Although the observation is an error page, it shows that our project is already running

Tags: Project compile success File configuration Environment Development observation run fit function functional address Common developer File name faster Root Framework browser Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi macOS OPPO Reno NVidia Huawei