I
Size: a a a
I
ST
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
FROM openjdk:11.0.10-jre-buster
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN apt update && apt install -y maven default-jre && export JAVA_HOME="/usr/local/openjdk-11"
CMD ./mvnw spring-boot:run
ST
CMD echo $JAVA_HOME
, значение верноеDK
LP
DK
ch
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
FROM openjdk:11.0.10-jre-buster
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN apt update && apt install -y maven default-jre && export JAVA_HOME="/usr/local/openjdk-11"
CMD ./mvnw spring-boot:run
ch
L
ch
Т
Scanner.next()
возвращает String
L
ch
ST
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.2.RELEASE:run (default-cli) on project serving-web-content: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.3.2.RELEASE:run failed: Unable to find a single main class from the following candidates [com.example.springboot.Application, com.example.kai.ServingWebContentApplication] -> [Help 1]
Y
АЛ
A
DC
AK
EP