【Spring Boot】JBLSpringBootAppGen plug-in

1. Overview of the role of JBLSpringBootAppGen

When creating a spring boot project; generally you need to create the startup boot class Application.java and application.yml configuration files, and the contents are the same; for convenience, you can install an IDEA plug-in JBLSpringBootAppGen, right-click on the project The startup boot class xxxApplication.java and application.yml configuration files can be automatically generated .

2. IDEA installs the JBLSpringBootAppGen plug-in

Open iDEA, press ctrl + alt + s, the settings page will open, find the Plugins plug-in window, directly search and install JBLSpringBootAppGen, I have already installed it here. After installation, follow the prompts to restart IDEA. It can be used after restarting.
Insert image description here

3. Use of JBLSpringBootAppGen plug-in

Right-click on the project, select JBLSpringBootAppGen
Insert image description here
and a prompt box will pop up. Enter the package and class name of the startup class you want to generate:
Insert image description here
Check the radio box below to help us automatically create a configuration file named application.yml in the resource directory. , this can generally be checked. Click OK to complete the creation.

Guess you like

Origin blog.csdn.net/cjl836735455/article/details/109270503