配置CheckStyle:打开IntelliJ IDEA的“Settings”对话框,选择“Tools” -> “Checkstyle”,在右侧的“Checkstyle”选项卡中,选择“Use the following Checkstyle config file”选项,并点击“Edit”按钮,选择刚刚创建的checkstyle.xml文件。 启用CheckStyle检查:在IntelliJ IDEA的“Code Inspection”工具窗口中,选择“Checkstyle...