[이클립스] 스프링부트 서버 종료안되는 문제 해결
Progamming/Spring2020. 5. 25. 15:48
이클립스에서 mvn spring-boot:run 실행 후 종료했는데 다시 실행이 안되는 경우 아래와 같이 설정을 바꿔주면 됩니다.
pom.xml 에서 spring-boot-maven-plugin 의 configuration안에 <fork>false</fork>추가
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<addResources>true</addResources>
<executable>true</executable>
<fork>false</fork>
<!--
Enable the line below to have remote debugging of your application on port 5005
-->
<jvmArguments>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</jvmArguments>
<arguments>
<argument>spring.profiles.active=dev</argument>
</arguments>
</configuration>
</plugin>
'Progamming > Spring' 카테고리의 다른 글
[Spring boot] lombok 에러 The method getExample() is undefined for the type Test test.java (0) | 2020.09.28 |
---|---|
[Spring boot] War 파일 생성 (Gradle) (0) | 2020.09.24 |
Spring boot(undertow) 불필요한 웹 메서드(HTTP Method) 제거 (0) | 2020.07.21 |