失效链接处理 |
Spring Cloud最新官方文档,版本3.0.1 PDF 下载
本站整理下载:
相关截图:
![]()
主要内容:
2.5. IDE setup
2.5.1. Intellij IDEA
In order to setup Intellij you should import our coding conventions, inspection profiles and set up
the checkstyle plugin. The following files can be found in the Spring Cloud Build project.
spring-cloud-build-tools/
└── src
├── checkstyle
│ └── checkstyle-suppressions.xml ③
└── main
└── resources
├── checkstyle-header.txt ②
├── checkstyle.xml ①
└── intellij
├── Intellij_Project_Defaults.xml ④
└── Intellij_Spring_Boot_Java_Conventions.xml ⑤ ① Default Checkstyle rules
② File header setup
③ Default suppression rules
④ Project defaults for Intellij that apply most of Checkstyle rules
⑤ Project style conventions for Intellij that apply most of Checkstyle rules
Figure 1. Code style
Go to File → Settings → Editor → Code style. There click on the icon next to the Scheme section.
There, click on the Import Scheme value and pick the Intellij IDEA code style XML option. Import
the spring-cloud-buildtools/src/main/resources/intellij/Intellij_Spring_Boot_Java_Conventions.xml file.
|