IT 한길

이클립스에서 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>