憩在河岸上的鱼
2020-06-28 14:49
在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
好像是你的端口有问题,看你application.yml(或者application-dev.yml,自己配的哪个配置文件)配置文件里面的server:的port是不是配的8080.
2小时上手SpringBoot
11882 学习 · 115 问题
相似问题