Eclipse import spring boot plus (3)

Time:2019-11-20

Eclipse import spring boot plus

Install Lombok plug-in

!!! Please make sure eclipse has the Lombok plug-in installed first!!!

Download Lombok

Run Lombok for installation

  • For example, Lombok can be downloaded to: C: usersaddmindownloads
  • Win + R open command line

Go to the downloads directory

cd C:\Users\Admin\Downloads

Execute lombok.jar or double-click

java -jar lombok.jar

Select the eclipse directory to install

Eclipse import spring boot plus (3)

Installation success prompt

Eclipse import spring boot plus (3)

Check if the eclipse directory has lombok.jar

Eclipse import spring boot plus (3)

The last line in eclipse.ini or springtoolsuite4.ini is configured as follows

-javaagent:C:\Users\Admin\Downloads\sts-4.3.1.RELEASE\lombok.jar

Restart eclipse, refresh project, finish

  • If all the above steps are successful, Lombok installation is successful!
  • Restart eclipse!
  • At this time, log.info in the project can be used normally
  • If the error is still reported, F5 refreshes the following items

Eclipse import Maven project

Import existing Maven projects

Eclipse import spring boot plus (3)

Select project directory

Eclipse import spring boot plus (3)

Eclipse project directory structure

Eclipse import spring boot plus (3)

  • After importing the project, update Maven first
  • Right click Project – > Maven – > Update Project
  • Or Alt+F5
  • Download the dependency at this time. Wait a moment

Startup project

  • There is no error in the project. Start the project

Eclipse import spring boot plus (3)

  • Right click Run as > spring boot app

Eclipse startup log

Eclipse import spring boot plus (3)

The red box in the figure shows the project information

  • Projectfinalname: project name
  • Projectversion: project version
  • Profileactive: current Maven profile activation environment
  • for examplelocal, corresponding configuration fileapplication-local.ymlTo configure
  • Contextpath: project access root path
  • Port: Project port
  • Home: project main interface, spring boot admin monitoring interface
  • Docs: swagger interface

Visit spring boot admin

👉 http://localhost:8888

  • Spring boot plus main interface, spring boot admin

Eclipse import spring boot plus (3)

Visit swagger

👉 http://localhost:8888/swagger-ui.html

  • Swagger interface

Eclipse import spring boot plus (3)

Recommended Today

Detailed explanation of sshd service and service management command under Linux

sshd SSH is the abbreviation of secure shell, which is the security protocol of application layer. SSH is a reliable protocol which provides security for remote login session and other network services. SSH protocol can effectively prevent information leakage in the process of remote management. openssh-server Function: enable remote hosts to access the sshd service […]