مراية لـ
https://github.com/GhaymahCloud/Ghaymah-java-starter.git
تم المزامنة 2025-08-24 17:19:08 +00:00
Initial commit: Java Spring Boot starter template
هذا الالتزام موجود في:
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
FROM openjdk:17-jdk-slim
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN ./mvnw package -DskipTests
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
CMD ["java", "-jar", "target/app.jar"]
|
19
src/main/java/com/example/Application.java
Normal file
19
src/main/java/com/example/Application.java
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
package com.example;
|
||||||
|
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
@SpringBootApplication
|
||||||
|
@RestController
|
||||||
|
public class Application {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(Application.class, args);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/")
|
||||||
|
public String home() {
|
||||||
|
return "MARHABA in Ghaymah";
|
||||||
|
}
|
||||||
|
}
|
المرجع في مشكلة جديدة
حظر مستخدم