I have a Spring Boot application which should start on port 8090. In my application.yml I set the set these parameter :
<code>spring:
application:
name: reactive-user
server:
port: 8090
h2:
console:
enabled: true
path: /h2-console
main:
allow-bean-definition-overriding: true
r2dbc:
url: r2dbc:h2:mem:///myusers
username: sa
password: password
sql:
init:
platform: h2
mode: always
</code>
<code>spring:
application:
name: reactive-user
server:
port: 8090
h2:
console:
enabled: true
path: /h2-console
main:
allow-bean-definition-overriding: true
r2dbc:
url: r2dbc:h2:mem:///myusers
username: sa
password: password
sql:
init:
platform: h2
mode: always
</code>
spring:
application:
name: reactive-user
server:
port: 8090
h2:
console:
enabled: true
path: /h2-console
main:
allow-bean-definition-overriding: true
r2dbc:
url: r2dbc:h2:mem:///myusers
username: sa
password: password
sql:
init:
platform: h2
mode: always
But when the application start I see this log :
Tomcat started on port 8080 (http) with context path ‘/’
At the beginging the Spring Initializer generate an application.properties and I rename it in application.yaml. I have only one configuration file.
Is anyone can help me on this issue.