Hi, My application properties

spring.profiles.active=@spring.profiles.active@ server.port=8000

My pom.xml file

4.0.0

org.springframework.boot spring-boot-starter-parent 3.1.1

com.example Demo_Docker 0.0.1-SNAPSHOT Demo_Docker Demo_Docker

17 development

org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-devtools runtime true org.springframework.boot spring-boot-starter-test test

src/test/resources true org.springframework.boot spring-boot-maven-plugin

My Dockerfile

FROM openjdk:17-jdk-alpine ARG JAR_FILE=out/*.jar COPY ./out/artifacts/Demo_Docker_jar/Demo_Docker.jar app.jar EXPOSE 8000 ENTRYPOINT ["java", "-jar", "/app.jar"]

RestController

@RestController public class hello {

@GetMapping("/") public String greeting() { return "Greeting Sto"; } INFO FRON INTELLIJ 17:38:36.217 [main] INFO com.example.demo_docker.DemoDockerApplication -- No active profile set, falling back to 1 default profile: "default"

CAN HELP PLS

APP NOT RUNNING ON DOCKER!

Comment From: ryanjbaxter

Can you provide a complete, minimal, verifiable sample that reproduces the problem? It should be available as a GitHub (or similar) project or attached to this issue as a zip file.

Comment From: stoiandelev

When I start the project with docker and open the localhost method greeting() it doesn't execute. When I run the app normally with Spring Boot the method works. If you have any additional questions, I'm on a date. My console says - No active profile set, falling back to 1 default profile: "default"

And the App does work.

I tried everything I could find on the net but to no avail Thanks for support

Demo_Docker.zip

Comment From: ryanjbaxter

This project doesn't using Spring Cloud from what I see so I am not sure why you have opened the issue in Spring Cloud Config...