spring框架(Java)中是否有相当于phpinfo的东西?

有没有一种简单的方法可以查看有关运行 spring 的网络服务器的所有信息(变量、驱动程序、路径、会话等)的汇总转储...类似于 phpinfo() 为 PHP 站点所做的工作。


桃花长相依
浏览 227回答 1
1回答

慕姐4208626

您可以使用Spring boot actuatorthis.include 下面的依赖项pom.xml,随您更改版本!&nbsp;<dependency>&nbsp; &nbsp; &nbsp; &nbsp; <groupId>org.springframework.boot</groupId>&nbsp; &nbsp; &nbsp; &nbsp; <artifactId>spring-boot-starter-actuator</artifactId>&nbsp; &nbsp; &nbsp; &nbsp; <version>2.1.5.RELEASE</version>&nbsp; &nbsp; </dependency>请参阅以下执行器为不同目的提供的端点。终点
打开App,查看更多内容
随时随地看视频慕课网APP