Terminating mvn spring-boot:run doesn't stop tomcat

后端 未结 18 1351
别那么骄傲
别那么骄傲 2020-12-04 07:11

I can successfully start spring-boot with mvn spring-boot, the documentation mentions to gracefully exit the application hit ctrl-c.



        
18条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-04 07:54

    I've had this problem when running spring boot app from netbeans 8.1 on Mac. The java process was not terminated when I hit red square button in netbeans so when I relaunched the app I always get "bind exception, adress already in use" thing. This is known bug.

    The solution was to add spring-boot:run command to run goals of project...

    ...and also if you get "No plugin found for prefix 'spring-boot' in the current project and in the plugin groups" you might need to add this to dependencies:

    
        org.springframework.boot
        spring-boot-starter-parent
        1.3.5.RELEASE
    
    
    
        
            spring-releases
            https://repo.spring.io/libs-release
        
    
    
        
            spring-releases
            https://repo.spring.io/libs-release
        
    
    

提交回复
热议问题