스프링부트 00_02강 스프링 개발 환경 구축 및 Hello World 페이지 출력 데모
강의
package com.hawaso.java_campus;
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
public class JavaCampusApplication {
public static void main(String[] args) {
SpringApplication.run(JavaCampusApplication.class, args);
}
@RestController
public class HelloController {
@GetMapping("/hello")
public String index() {
return "Hello, String Boot!";
}
}
}
추천 자료: ASP.NET Core 인증 및 권한 부여
추천 자료: .NET Blazor에 대해 알아보시겠어요? .NET Blazor 알아보기를 확인해보세요!