新搭建的springboot項目啟動報錯Disconnected from the target VM, address: '127.0.0.1:2227', transport: 'socket'


新搭建的springboot項目除了選了個lombok以外什么都沒選,等了半天加載完Maven以后啟動項目就報錯

Disconnected from the target VM, address: '127.0.0.1:2227', transport: 'socket'

 

網上找了下原因大概是因為端口沖突

解決辦法:將pom文件中的spring-boot-starter

 

 

改成spring-boot-starter-web就好了

  <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM