我是 Spring Boot 的新手,我正在嘗試構建一個簡單的 CRUD 應用程序,但是當我運行我的應用程序時出現此錯誤并且我不知道如何解決它。這是我的 application.properties 文件:server.port = 8079spring.datasource.url=jdbc:mysql://localhost:8889/employee?useLegacyDatetimeCode=false&serverTimezone=UTCspring.datasource.username = rootspring.datasource.password = rootspring.datasource.driver-class-name=com.mysql.jdbc.Driverspring.jpa.database-platform = org.hibernate.dialect.MySQL5Dialectspring.jpa.generate-ddl=truespring.jpa.hibernate.ddl-auto = update但我得到錯誤:The Tomcat connector configured to listen on port 8079 failed to start. The port may already be in use or the connector may be misconfigured.我多次更改端口,但仍然出現錯誤,因此我的連接器必須配置錯誤。任何幫助將不勝感激。
3 回答

HUWWW
TA貢獻1874條經驗 獲得超12個贊
由于錯誤狀態,您的操作系統可能正在使用另一個程序的端口,請嘗試更改端口號。如果您第一次成功運行應用程序,則意味著您沒有正確關閉應用程序并且線程仍在系統上運行。
添加回答
舉報
0/150
提交
取消