首页 > 解决方案 > 如何使用 project-default.yml 配置 Thorntail http 端口?

问题描述

我正在使用 Thorntail 2.3.0.Final,在文档“5.4.2. Sockets”中有一个配置某种东西的例子:

 thorntail:
   network:
     socket-binding-groups:
       standard-sockets:
         http:
           port: 8081

我以为它开始侦听端口 8081,但它一直继续开始侦听端口 8080

那么如何正确配置端口绑定呢?

标签: thorntail

解决方案


快捷方式是使用:

thorntail:
  http:
    port: 8081

推荐阅读