This commit is contained in:
杨建炊 2025-09-26 16:31:59 +08:00
parent cba4790374
commit ae77622325
2 changed files with 30 additions and 17 deletions

30
pom.xml
View File

@ -62,7 +62,37 @@
</dependency>
</dependencies>
<build>
<plugins>
<!-- 其他插件也可以在这里 -->
<!-- ✅ Spring Boot 打包插件 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.7.15</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 例如:编译插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,17 +0,0 @@
package org.shop.crop;
//TIP <b>运行</b>代码请按 <shortcut actionId="Run"/>
// 点击装订区域中的 <icon src="AllIcons.Actions.Execute"/> 图标
public class Main {
public static void main(String[] args) {
//TIP 当文本光标位于高亮显示的文本处时按 <shortcut actionId="ShowIntentionActions"/>
// 查看 IntelliJ IDEA 建议如何修正
System.out.printf("Hello and welcome!");
for (int i = 1; i <= 5; i++) {
//TIP <shortcut actionId="Debug"/> 开始调试代码我们已经设置了一个 <icon src="AllIcons.Debugger.Db_set_breakpoint"/> 断点
// 但您始终可以通过按 <shortcut actionId="ToggleLineBreakpoint"/> 添加更多断点
System.out.println("i = " + i);
}
}
}