我在将Java Spring Boot应用程序连接到MySQL数据库时遇到了问题,请参阅标题中的内容,以及更多信息:java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.Java应用程序在Debian10机器上运行,MySQL服务器也在那里运行。Spring数据源url:jdbc:
我使用Azure远程服务器进行项目部署。如您所知,角使用localhost:4200,springboot使用localhost:8080。当我在远程服务器上运行项目时,它就正常工作了。但是,当我通过远程服务器ip远程运行/访问它时,我只能访问前端部分。当我检查控制台时,它们会显示cors错误。878d748ada0b716.js:1 GET net::ERR_F