프로그래밍 언어
크로스 플랫폼 애플리케이션 구축을 위한 엔터프라이즈급 프로그래밍 언어 및 런타임
Write once, run anywhere via JVM bytecode
Robust, scalable, with comprehensive libraries and frameworks
Compile-time type safety prevents common errors
Garbage collection handles memory automatically
Spring, Hibernate, Maven, Gradle, and thousands of libraries
Code written decades ago still runs on modern JVMs
# OpenJDK 17 (LTS)
sudo apt update
sudo apt install openjdk-17-jdk -y
java -version
# Set JAVA_HOME
echo 'export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64' >> ~/.bashrc
source ~/.bashrcHello World:// HelloWorld.java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}javac HelloWorld.java
java HelloWorld
@SpringBootApplication
@RestController
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@GetMapping("/")
public String hello() {
return "Hello, World!";
}
}Maven pom.xml:<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>3.2.0</version>
</dependency>
</dependencies>mvn spring-boot:run
간단한 VPS 배포 프로세스로 몇 분 안에 시작하세요
Deploy in about 2 minutes • Full root access • Support by ticket and email