테스트코드로 첫 서버 실행

𝙃𝙖𝙞𝙡𝙚𝙮·2021년 12월 14일
0
post-thumbnail

🎯 깃헙 코드보기

package com.example.demo;

import org.junit.jupiter.api.Test;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class DemoApplicationTests {

    @Test
    void contextLoads() {
    }

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}

위 코드 실행하여,

Tomcat started on port(s): 8080 (http) with context path ''로 실행 성공여부 확인.
잘 뜨면 아무튼 성공

profile
ෆ 𝓋𝒾𝓈 𝓉𝒶 𝓋𝒾𝑒 ෆ

0개의 댓글