Could not resolve placeholder 'server.port' in value “${server.port}”

After upgrading a jHipster project from version 4.14.5 to the version 5.8.1 I am getting this error when I try to run the application:

Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loggingConfiguration' defined in file [\config\LoggingConfiguration.class]:
Unexpected exception during bean creation; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'server.port' in value "${server.port}"

Do you have any idea of what could be the cause of the problem?

#java #spring

39.15 GEEK