본문 바로가기
Spring Boot

spring boot 내장 웹 서버 변경

by 상국이 2022. 1. 31.
728x90

* 톰캣을 제외한 다른 웹서버를 사용하고 싶은 경우

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    <exclusions>
        <exclusion>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-jetty</artifactId>
</dependency>

 

* none webApplication으로 띄우고 싶은 경우

        > application.properties 에 추가

spring.main.web-application-type=none

 

 

728x90

'Spring Boot' 카테고리의 다른 글

Spring boot SSL 사용  (0) 2022.02.01
Spring boot port  (0) 2022.01.31
Spring boot 내장 Servlet Container  (0) 2022.01.29
Starter & AutoConfigure  (0) 2022.01.29
@SpringBootApplication  (0) 2022.01.29

댓글