为了账号安全,请及时绑定邮箱和手机立即绑定

mvn spring-boot:run 无法启动项目

在IDEA中可以正常启动并访问,但是 mvn spring-boot:run 无法启动项目,maven报错信息如下:

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.3.RELEASE:run (default-cli) on project luckymoney: An exception occurred while running. null: InvocationTargetException: Connector configured to li

sten on port 8080 failed to start -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException



正在回答

1 回答

好像是你的端口有问题,看你application.yml(或者application-dev.yml,自己配的哪个配置文件)配置文件里面的server:的port是不是配的8080.

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

mvn spring-boot:run 无法启动项目

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信