Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能帮我弄清楚如何在不使用自动配置依赖项的情况下启用执行器端点?
我正在开发一个 Spring-Boot 2 项目,但禁止启动 pom 和自动配置依赖项。
尝试添加此依赖项:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-actuator</artifactId> <version>2.1.0.RELEASE</version> </dependency>
并将其添加到 application.properties 以启用执行器的所有端点(如果要启用所有端点)。
management.endpoints.web.exposure.include=*