<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.hateoas</groupId>
<artifactId>spring-hateoas</artifactId>
</dependency>

 

@Controller
@EnableAutoConfiguration
public class App 
{

    public static void main(String[] args) throws Exception {
        SpringApplication.run(App.class, args);
    }
}

  

{"links":[
{"rel":"self","href":"http://127.0.0.1:8080/actuator"},
{"rel":"health","href":"http://127.0.0.1:8080/health"},
{"rel":"trace","href":"http://127.0.0.1:8080/trace"},
{"rel":"configprops","href":"http://127.0.0.1:8080/configprops"},
{"rel":"mappings","href":"http://127.0.0.1:8080/mappings"},
{"rel":"env","href":"http://127.0.0.1:8080/env"},
{"rel":"auditevents","href":"http://127.0.0.1:8080/auditevents"},
{"rel":"metrics","href":"http://127.0.0.1:8080/metrics"},
{"rel":"beans","href":"http://127.0.0.1:8080/beans"},
{"rel":"heapdump","href":"http://127.0.0.1:8080/heapdump"},
{"rel":"autoconfig","href":"http://127.0.0.1:8080/autoconfig"},
{"rel":"info","href":"http://127.0.0.1:8080/info"},
{"rel":"dump","href":"http://127.0.0.1:8080/dump"},
{"rel":"loggers","href":"http://127.0.0.1:8080/loggers"}]}

 

 

management.security.enabled=false

相关文章:

  • 2022-12-23
  • 2021-11-09
  • 2021-07-05
  • 2021-06-06
  • 2022-01-18
  • 2021-08-12
  • 2021-09-16
猜你喜欢
  • 2021-09-28
  • 2021-04-02
  • 2022-01-21
  • 2022-01-08
  • 2021-11-30
  • 2022-12-23
相关资源
相似解决方案