两个项目同时部署到服务器,都正常运行完成。但后面就是一个项目的接口可以正常访问(此项目完全没有设置阿里云端口安全组,直接就可访问),但另一个项目的接口访问却没反应也不报错(服务正常运行,并且项目中没有丝毫无限循环的操作,查看日志还是启动时模样,丝毫不给反应)服务器防火墙已关闭,阿里云端口安全组以及宝塔安全组已配置相应端口,可依旧不起作用。另外将项目运行在本地完全能正常访问(服务器上访问无响应的项目)。所以我怀疑是服务器上的数据库这一块出现问题,导致项目整体卡壳,结果将本地项目也换成线上数据库,发现完全是没问题的。目前没辙,不知道如何解决,还望各位大兄帮帮忙【抱拳了】
不报错,也就没有其他截图提供了,日志也都是一个springboot正常启动的样子:
Microsoft Windows [版本 10.0.17763.379]
(c) 2018 Microsoft Corporation。保留所有权利。
D:\url>java -jar tele_springboot-1.0-SNAPSHOT.jar
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.6.1)
2023-08-07 14:42:45.689 INFO 9032 --- [ main] c.j.t.TeleSpringbootApplication : Starting TeleSpringbootApplication v1.0-SNAPSHOT using Java 18.0.2.1 on iZwz9b3g0m40j1Z with PID 9032 (D:\url\tele_springboot-1.0-SNAPSHOT.jar started by Administrator in D:\url)
2023-08-07 14:42:45.704 INFO 9032 --- [ main] c.j.t.TeleSpringbootApplication : No active profile set, falling back to default profiles: default
2023-08-07 14:42:47.191 INFO 9032 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2023-08-07 14:42:47.205 INFO 9032 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2023-08-07 14:42:47.290 INFO 9032 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 24 ms. Found 0 Redis repository interfaces.
2023-08-07 14:42:48.634 INFO 9032 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8090 (http)
2023-08-07 14:42:48.664 INFO 9032 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2023-08-07 14:42:48.675 INFO 9032 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.55]
2023-08-07 14:42:48.831 INFO 9032 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2023-08-07 14:42:48.832 INFO 9032 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2932 ms
2023-08-07 14:42:49.174 INFO 9032 --- [ main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
2023-08-07 14:42:49.476 INFO 9032 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
2023-08-07 14:42:57.494 INFO 9032 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8090 (http) with context path ''
2023-08-07 14:42:57.515 INFO 9032 --- [ main] c.j.t.TeleSpringbootApplication : Started TeleSpringbootApplication in 13.006 seconds (JVM running for 13.997)