在工具栏上选择edit configurations 添加新的配置,并选择 SpringBoot 3:添加后显示为 Unnamed,此时我们可以重命名,在 VM options 填写 -Dserver.port=8081,就可完成