在应用程序属性中更改服务器端口

时间:2020-09-29 10:37:52

标签: spring spring-boot

我要更改服务器端口。

我已经编写了一个应用程序属性文件:https://github.com/Kifsif/reusable/tree/master/src/main/resources

其中:

{start=[apple], next=[bulb]}
{start=[and], next=[bulb]}
{start=[all], next=[bulb]}
{start=[apple], next=[bee]}
{start=[and], next=[bee]}
{start=[all], next=[bee]}
{start=[apple], next=[bell]}
{start=[and], next=[bell]}
{start=[all], next=[bell]}

但是我得到这个错误:

server.port=8083

如何从8083开始?

1 个答案:

答案 0 :(得分:0)

它应该可以在8083上运行,但是如果它抱怨8080则将其杀死,因此它将停止对8080进行计算,并且如果有任何错误,它将与8083有关。

  1. 以管理员身份运行CMD

  2. netstat -a -o -n

  3. 在8080上找到进程的PID

  4. 使用命令“ taskkill / F / PID xxxx”将其杀死

https://www.youtube.com/watch?v=KdH6MvnGNpU&ab_channel=Seeofgames

相关问题